mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-07 13:02:46 +00:00
Set zero $size and continue if volume_resize() returns false
Needed for some storages with backing block devices to do oonlinr resize. Signed-off-by: Dmitry Petuhov <mityapetuhov@gmail.com>
This commit is contained in:
parent
be73df94e6
commit
7246e8f92f
@ -3980,7 +3980,7 @@ sub qemu_block_resize {
|
|||||||
|
|
||||||
my $running = check_running($vmid);
|
my $running = check_running($vmid);
|
||||||
|
|
||||||
return if !PVE::Storage::volume_resize($storecfg, $volid, $size, $running);
|
$size = 0 if !PVE::Storage::volume_resize($storecfg, $volid, $size, $running);
|
||||||
|
|
||||||
return if !$running;
|
return if !$running;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user