From b61e5646065de7cd29a58311948d142b42eb7cd8 Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Wed, 16 Jul 2025 08:31:44 +0200 Subject: [PATCH] common: fix qemu_img_resize Signed-off-by: Alexandre Derumier --- src/PVE/Storage/Common.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PVE/Storage/Common.pm b/src/PVE/Storage/Common.pm index 71d123a..746a262 100644 --- a/src/PVE/Storage/Common.pm +++ b/src/PVE/Storage/Common.pm @@ -245,7 +245,7 @@ sub qemu_img_measure { =head3 qemu_img_resize - qemu_img_resize($scfg, $path, $format, $size, $preallocation, $timeout) + qemu_img_resize($path, $format, $size, $preallocation, $timeout) Resize a qemu image C<$path> with format C<$format> to a target Kb size C<$size>. Default timeout C<$timeout> is 10s if not specified. @@ -254,7 +254,7 @@ C<$preallocation> allows to specify the preallocation option for the resize oper =cut sub qemu_img_resize { - my ($scfg, $path, $format, $size, $preallocation, $timeout) = @_; + my ($path, $format, $size, $preallocation, $timeout) = @_; die "format is missing" if !$format;