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:
committed by
Fabian Grünbichler
parent
44ff2de576
commit
adfd7e9166
@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user