mirror of
https://git.proxmox.com/git/qemu-server
synced 2026-01-08 19:13:42 +00:00
clone_disk: fix offline clone of efidisk
by partially reverting 4df98f2f14 and fixing the
line-length issue differently. The commit didn't update two later usages of
$size, breaking copying the efidisk. The other usage as a parameter to
qemu_img_convert() is luckily only cosmetic, for progress output.
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
e00319af4d
commit
b5688f69a0
@ -6951,8 +6951,9 @@ sub clone_disk {
|
||||
} else {
|
||||
($size) = PVE::Storage::volume_size_info($storecfg, $drive->{file}, 10);
|
||||
}
|
||||
$size /= 1024;
|
||||
$newvolid = PVE::Storage::vdisk_alloc($storecfg, $storeid, $newvmid, $dst_format, $name, $size);
|
||||
$newvolid = PVE::Storage::vdisk_alloc(
|
||||
$storecfg, $storeid, $newvmid, $dst_format, $name, ($size/1024)
|
||||
);
|
||||
push @$newvollist, $newvolid;
|
||||
|
||||
PVE::Storage::activate_volumes($storecfg, [$newvolid]);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user