[pve-devel] [PATCH 45/48] nexenta: parse_volname : parse base
Alexandre Derumier
aderumier at odiso.com
Tue Jan 29 17:14:27 CET 2013
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
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 8dc8917..a9b8a53 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/^((vm|base)-(\d+)-\S+)$/) {
+ return ('images', $1, $3);
}
die "unable to parse nexenta volume name '$volname'\n";
--
1.7.10.4
More information about the pve-devel
mailing list