mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-10-04 19:20:11 +00:00
migration: get nbd disks helper: use volume format from storage layer
Avoid using the extension based qemu_img_format() helper. Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
d6e76d1b60
commit
0da8f110e8
@ -5627,7 +5627,7 @@ sub vm_migrate_get_nbd_disks {
|
|||||||
my $scfg = PVE::Storage::storage_config($storecfg, $storeid);
|
my $scfg = PVE::Storage::storage_config($storecfg, $storeid);
|
||||||
return if $scfg->{shared};
|
return if $scfg->{shared};
|
||||||
|
|
||||||
my $format = qemu_img_format($scfg, $volname);
|
my $format = checked_volume_format($storecfg, $volid);
|
||||||
|
|
||||||
# replicated disks re-use existing state via bitmap
|
# replicated disks re-use existing state via bitmap
|
||||||
my $use_existing = $replicated_volumes->{$volid} ? 1 : 0;
|
my $use_existing = $replicated_volumes->{$volid} ? 1 : 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user