]> git.proxmox.com Git - qemu-server.git/commitdiff
qemu_img_convert: activate source volume
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 12 Nov 2015 10:16:50 +0000 (11:16 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 12 Nov 2015 10:16:50 +0000 (11:16 +0100)
For example, this is required if we copy from lvmthin snapshots.

PVE/QemuServer.pm

index 221ed4426899a1425cea13db9e9253d48e0e07d0..29dcd6abed35713b97cac08849d4371ab717ff01 100644 (file)
@@ -6155,6 +6155,9 @@ sub qemu_img_convert {
     my ($dst_storeid, $dst_volname) = PVE::Storage::parse_volume_id($dst_volid, 1);
 
     if ($src_storeid && $dst_storeid) {
+
+       PVE::Storage::activate_volumes($storecfg, [$src_volid], $snapname);
+
        my $src_scfg = PVE::Storage::storage_config($storecfg, $src_storeid);
        my $dst_scfg = PVE::Storage::storage_config($storecfg, $dst_storeid);