qemu_img_convert: activate source volume

For example, this is required if we copy from lvmthin snapshots.
This commit is contained in:
Dietmar Maurer 2015-11-12 11:16:50 +01:00
parent c4c844ef8e
commit 6bb91c1797

View 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);