mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-12 10:10:39 +00:00
move_vm: add original disk as unusedX
This commit is contained in:
parent
e2cd75fa65
commit
635c3c4426
@ -2099,7 +2099,7 @@ __PACKAGE__->register_method({
|
||||
enum => [ PVE::QemuServer::disknames() ],
|
||||
},
|
||||
storage => get_standard_option('pve-storage-id', { description => "Target Storage." }),
|
||||
format => {
|
||||
'format' => {
|
||||
type => 'string',
|
||||
description => "Target Format.",
|
||||
enum => [ 'raw', 'qcow2', 'vmdk' ],
|
||||
@ -2180,6 +2180,8 @@ __PACKAGE__->register_method({
|
||||
|
||||
$conf->{$disk} = PVE::QemuServer::print_drive($vmid, $newdrive);
|
||||
|
||||
PVE::QemuServer::add_unused_volume($conf, $volid);
|
||||
|
||||
PVE::QemuServer::update_config_nolock($vmid, $conf, 1);
|
||||
};
|
||||
if (my $err = $@) {
|
||||
|
Loading…
Reference in New Issue
Block a user