From adfd7e9166c468bdf776cad80c2080ed1ecdd30f Mon Sep 17 00:00:00 2001 From: Fiona Ebner Date: Fri, 6 Dec 2024 17:25:23 +0100 Subject: [PATCH] btrfs: volume size info: specify format when querying file info This avoids auto-detection by qemu-img and so the information will be correct with respect to the actual image format on the storage layer. Signed-off-by: Fiona Ebner --- src/PVE/Storage/BTRFSPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/Storage/BTRFSPlugin.pm b/src/PVE/Storage/BTRFSPlugin.pm index d28e681..81e5acb 100644 --- a/src/PVE/Storage/BTRFSPlugin.pm +++ b/src/PVE/Storage/BTRFSPlugin.pm @@ -490,7 +490,7 @@ sub volume_size_info { return wantarray ? ($size, 'subvol', $used, undef, $ctime) : 1; } - return PVE::Storage::Plugin::file_size_info($path, $timeout); + return PVE::Storage::Plugin::file_size_info($path, $timeout, $format); } sub volume_resize {