5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-25 06:03:52 +03:00

fix move_disk on RBD

activating the disk when use RBD is necessary to have the given path.
This commit is contained in:
Wolfgang Link 2015-09-03 13:12:13 +02:00 committed by Dietmar Maurer
parent 952e3ac30f
commit 1dbd6d30e0

View File

@ -6276,6 +6276,8 @@ sub clone_disk {
$newvolid = PVE::Storage::vdisk_alloc($storecfg, $storeid, $newvmid, $format, undef, ($size/1024));
push @$newvollist, $newvolid;
PVE::Storage::activate_volumes($storecfg, $newvollist);
if (!$running || $snapname) {
qemu_img_convert($drive->{file}, $newvolid, $size, $snapname);
} else {