mirror of
git://git.proxmox.com/git/pve-storage.git
synced 2024-12-23 17:34:34 +03:00
sheepdog : volume_resize
use collie command to resize disk (online or offline). we can't use qmp block_resize to online resize size in guest (throw error) , so return undef. Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
e7a42a764e
commit
9ffffc2e24
@ -231,4 +231,13 @@ sub volume_size_info {
|
||||
return $size;
|
||||
}
|
||||
|
||||
sub volume_resize {
|
||||
my ($class, $scfg, $storeid, $volname, $size, $running) = @_;
|
||||
|
||||
my $cmd = &$collie_cmd($scfg, 'vdi', 'resize' , $volname, $size);
|
||||
run_command($cmd, errmsg => "sheepdog resize $volname' error");
|
||||
|
||||
return undef;
|
||||
}
|
||||
|
||||
1;
|
||||
|
Loading…
Reference in New Issue
Block a user