mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-10 01:18:01 +03:00
Revert "resize_vm: request new size from storage after resizing"
This reverts commit b5490d8a98
.
When resizing a volume of a running VM, a qmp block_resize command
is issued. This is non-blocking, so the size on the storage immediately
after issuing the command might still be the old one.
This is part of the issue reported in bug #2621.
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
cd37203880
commit
e29e5be6ef
@ -3692,8 +3692,7 @@ __PACKAGE__->register_method({
|
||||
|
||||
PVE::QemuServer::qemu_block_resize($vmid, "drive-$disk", $storecfg, $volid, $newsize);
|
||||
|
||||
my $effective_size = eval { PVE::Storage::volume_size_info($storecfg, $volid, 3); };
|
||||
$drive->{size} = $effective_size // $newsize;
|
||||
$drive->{size} = $newsize;
|
||||
$conf->{$disk} = PVE::QemuServer::print_drive($drive);
|
||||
|
||||
PVE::QemuConfig->write_config($vmid, $conf);
|
||||
|
Loading…
Reference in New Issue
Block a user