From 0589e5f93356f972042886f197ecf814d3bfce31 Mon Sep 17 00:00:00 2001 From: Wolfgang Link Date: Wed, 28 Oct 2015 10:41:04 +0100 Subject: [PATCH] insert the format type at volume_resize qemu-img needs now the format to resize image. --- PVE/Storage/Plugin.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm index d65bd11..ccec759 100644 --- a/PVE/Storage/Plugin.pm +++ b/PVE/Storage/Plugin.pm @@ -655,7 +655,9 @@ sub volume_resize { my $path = $class->filesystem_path($scfg, $volname); - my $cmd = ['/usr/bin/qemu-img', 'resize', $path , $size]; + my $format = ($class->parse_volname($volname))[6]; + + my $cmd = ['/usr/bin/qemu-img', 'resize', '-f', $format, $path , $size]; run_command($cmd, timeout => 10);