From 60301ee037fe5dae6a1d74e5f04dc94ff1e7590a Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Sun, 5 Aug 2012 10:16:48 +0200 Subject: [PATCH] nexenta: volume_size_info Signed-off-by: Alexandre Derumier --- PVE/Storage/NexentaPlugin.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PVE/Storage/NexentaPlugin.pm b/PVE/Storage/NexentaPlugin.pm index 239a951..523adac 100644 --- a/PVE/Storage/NexentaPlugin.pm +++ b/PVE/Storage/NexentaPlugin.pm @@ -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;