From e7b2953b2fc018ae2150dddf01be7e73eb410f8b Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Tue, 5 Feb 2013 12:55:59 +0100 Subject: [PATCH] nexenta : parse_volname Signed-off-by: Alexandre Derumier --- PVE/Storage/NexentaPlugin.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/Storage/NexentaPlugin.pm b/PVE/Storage/NexentaPlugin.pm index 6f0e257..4a5f66d 100644 --- a/PVE/Storage/NexentaPlugin.pm +++ b/PVE/Storage/NexentaPlugin.pm @@ -180,8 +180,8 @@ sub options { sub parse_volname { my ($class, $volname) = @_; - if ($volname =~ m/^(vm-(\d+)-\S+)$/) { - return ('images', $1, $2); + if ($volname =~ m/^(((base|vm)-(\d+)-\S+)\/)?((base)?(vm)?-(\d+)-\S+)$/) { + return ('images', $5, $8, $2, $4, $6); } die "unable to parse nexenta volume name '$volname'\n";