nexenta: volume_size_info

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier
2012-08-05 10:16:48 +02:00
committed by Dietmar Maurer
parent c95c307373
commit 60301ee037

View File

@ -314,7 +314,9 @@ sub deactivate_volume {
sub volume_size_info {
my ($class, $scfg, $storeid, $volname, $timeout) = @_;
return undef;
my $json = '{"method": "get_child_prop","object" : "zvol","params": ["'.$scfg->{pool}.'/'.$volname.'", "size_bytes"]}';
my $size = nexenta_request($scfg, $json);
return $size;
}
1;