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:
Dmitry Petuhov 2017-01-16 10:45:10 +03:00 committed by Wolfgang Bumiller
parent be73df94e6
commit 7246e8f92f

View File

@ -3980,7 +3980,7 @@ sub qemu_block_resize {
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;