nexenta : volume_resize : parse_volname
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
d2befd94be
commit
d6a30aa259
@ -440,7 +440,9 @@ sub volume_size_info {
|
|||||||
sub volume_resize {
|
sub volume_resize {
|
||||||
my ($class, $scfg, $storeid, $volname, $size, $running) = @_;
|
my ($class, $scfg, $storeid, $volname, $size, $running) = @_;
|
||||||
|
|
||||||
nexenta_request($scfg, 'set_child_prop', 'zvol', "$scfg->{pool}/$volname", 'volsize', ($size/1024) . 'KB');
|
my ($vtype, $name, $vmid) = $class->parse_volname($volname);
|
||||||
|
|
||||||
|
nexenta_request($scfg, 'set_child_prop', 'zvol', "$scfg->{pool}/$name", 'volsize', ($size/1024) . 'KB');
|
||||||
}
|
}
|
||||||
|
|
||||||
sub volume_snapshot {
|
sub volume_snapshot {
|
||||||
|
|||||||
Reference in New Issue
Block a user