5
0
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:
Fabian Ebner 2020-03-04 10:51:12 +01:00 committed by Thomas Lamprecht
parent cd37203880
commit e29e5be6ef

View File

@ -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);