]> git.proxmox.com Git - qemu-server.git/commitdiff
Use 'volname' instead of 'volid' for 'qemu_img_format'
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 20 Jan 2020 13:00:44 +0000 (14:00 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 21 Jan 2020 06:45:31 +0000 (07:45 +0100)
As 'qemu_img_format' just matches a regex, this doesn't make much of
a difference, but AFAICT all other calls of 'qemu_img_format' use 'volname'.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/QemuServer.pm

index 59335c59217296e1e3ae0867a17766120323758d..bcdadca9b6b14466fe50730f1a884b428e01426e 100644 (file)
@@ -5387,7 +5387,7 @@ sub vm_start {
                    $format = (grep {$fileFormat eq $_} @{$validFormats}) ? $fileFormat : $defFormat;
                } else {
                    my $scfg = PVE::Storage::storage_config($storecfg, $storeid);
-                   $format = qemu_img_format($scfg, $volid);
+                   $format = qemu_img_format($scfg, $volname);
                }
 
                my $newvolid = PVE::Storage::vdisk_alloc($storecfg, $storeid, $vmid, $format, undef, ($drive->{size}/1024));