Signed-off-by: Hannes Laimer <h.lai...@proxmox.com>
---
Resizing is now done asynchronous in a task.

 PVE/API2/Qemu.pm | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
index e8de4ea..379f34a 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -3730,7 +3730,7 @@ __PACKAGE__->register_method({
            },
        },
     },
-    returns => { type => 'null'},
+    returns => { type => 'string'},
     code => sub {
         my ($param) = @_;
 
@@ -3817,8 +3817,7 @@ __PACKAGE__->register_method({
            PVE::QemuConfig->write_config($vmid, $conf);
        };
 
-        PVE::QemuConfig->lock_config($vmid, $updatefn);
-        return;
+       return $rpcenv->fork_worker('qmresize', $vmid, $authuser, 
PVE::QemuConfig->lock_config($vmid, $updatefn));
     }});
 
 __PACKAGE__->register_method({
-- 
2.20.1



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to