5
0
mirror of git://git.proxmox.com/git/pve-storage.git synced 2025-01-03 01:18:01 +03:00

allow --allow-shrink on RBD resize

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
This commit is contained in:
Stefan Priebe 2016-11-16 20:13:59 +01:00 committed by Dietmar Maurer
parent cca04efbb3
commit 4b7dd9d743

View File

@ -608,7 +608,7 @@ sub volume_resize {
my ($vtype, $name, $vmid) = $class->parse_volname($volname); my ($vtype, $name, $vmid) = $class->parse_volname($volname);
my $cmd = &$rbd_cmd($scfg, $storeid, 'resize', '--size', ($size/1024/1024), $name); my $cmd = &$rbd_cmd($scfg, $storeid, 'resize', '--allow-shrink', '--size', ($size/1024/1024), $name);
run_rbd_command($cmd, errmsg => "rbd resize '$volname' error"); run_rbd_command($cmd, errmsg => "rbd resize '$volname' error");
return undef; return undef;
} }