mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-06 09:36:10 +00:00
clone disk : keep source volume params
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
4a5a259072
commit
b37558ca33
@ -2077,7 +2077,12 @@ __PACKAGE__->register_method({
|
||||
}
|
||||
|
||||
my ($size) = PVE::Storage::volume_size_info($storecfg, $newvolid, 3);
|
||||
my $disk = { file => $newvolid, size => $size };
|
||||
my $disk = $drive;
|
||||
$disk->{full} = undef;
|
||||
$disk->{format} = undef;
|
||||
$disk->{file} = $newvolid;
|
||||
$disk->{size} = $size;
|
||||
|
||||
$newconf->{$opt} = PVE::QemuServer::print_drive($vmid, $disk);
|
||||
|
||||
PVE::QemuServer::update_config_nolock($newid, $newconf, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user