[pve-devel] [PATCH 40/44] nexenta : volume_size_info : parse_volname
Alexandre Derumier
aderumier at odiso.com
Tue Feb 5 12:56:07 CET 2013
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
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 0fcbba1..3071eb2 100644
--- a/PVE/Storage/NexentaPlugin.pm
+++ b/PVE/Storage/NexentaPlugin.pm
@@ -432,7 +432,9 @@ sub deactivate_volume {
sub volume_size_info {
my ($class, $scfg, $storeid, $volname, $timeout) = @_;
- return nexenta_get_zvol_size($scfg, "$scfg->{pool}/$volname"),
+ my ($vtype, $name, $vmid) = $class->parse_volname($volname);
+
+ return nexenta_get_zvol_size($scfg, "$scfg->{pool}/$name"),
}
sub volume_resize {
--
1.7.10.4
More information about the pve-devel
mailing list