insert the format type at volume_resize

qemu-img needs now the format to resize image.
This commit is contained in:
Wolfgang Link
2015-10-28 10:41:04 +01:00
committed by Dietmar Maurer
parent 323ab5baa8
commit 0589e5f933

View File

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