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 <f.ebner@proxmox.com>
This commit is contained in:
Fiona Ebner
2024-12-06 17:25:23 +01:00
committed by Fabian Grünbichler
parent 44ff2de576
commit adfd7e9166

View File

@ -490,7 +490,7 @@ sub volume_size_info {
return wantarray ? ($size, 'subvol', $used, undef, $ctime) : 1; 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 { sub volume_resize {