mirror of
git://git.proxmox.com/git/pve-storage.git
synced 2024-12-22 13:34:16 +03:00
plugin: 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:
parent
e50dde06fa
commit
44ff2de576
@ -1122,8 +1122,9 @@ sub update_volume_attribute {
|
||||
|
||||
sub volume_size_info {
|
||||
my ($class, $scfg, $storeid, $volname, $timeout) = @_;
|
||||
my $format = ($class->parse_volname($volname))[6];
|
||||
my $path = $class->filesystem_path($scfg, $volname);
|
||||
return file_size_info($path, $timeout);
|
||||
return file_size_info($path, $timeout, $format);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user