insert the format type at volume_resize
qemu-img needs now the format to resize image.
This commit is contained in:
committed by
Dietmar Maurer
parent
323ab5baa8
commit
0589e5f933
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user