mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-05 18:36:21 +00:00
qemu_img_convert: activate source volume
For example, this is required if we copy from lvmthin snapshots.
This commit is contained in:
parent
c4c844ef8e
commit
6bb91c1797
@ -6155,6 +6155,9 @@ sub qemu_img_convert {
|
|||||||
my ($dst_storeid, $dst_volname) = PVE::Storage::parse_volume_id($dst_volid, 1);
|
my ($dst_storeid, $dst_volname) = PVE::Storage::parse_volume_id($dst_volid, 1);
|
||||||
|
|
||||||
if ($src_storeid && $dst_storeid) {
|
if ($src_storeid && $dst_storeid) {
|
||||||
|
|
||||||
|
PVE::Storage::activate_volumes($storecfg, [$src_volid], $snapname);
|
||||||
|
|
||||||
my $src_scfg = PVE::Storage::storage_config($storecfg, $src_storeid);
|
my $src_scfg = PVE::Storage::storage_config($storecfg, $src_storeid);
|
||||||
my $dst_scfg = PVE::Storage::storage_config($storecfg, $dst_storeid);
|
my $dst_scfg = PVE::Storage::storage_config($storecfg, $dst_storeid);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user