5
0
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:
Alexandre Derumier 2012-08-06 11:57:32 +02:00 committed by Dietmar Maurer
parent e7a42a764e
commit 9ffffc2e24

View File

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