[pve-devel] [PATCH 46/48] lvm : parse_volname : parse base
Alexandre Derumier
aderumier at odiso.com
Tue Jan 29 17:14:28 CET 2013
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/Storage/LVMPlugin.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/PVE/Storage/LVMPlugin.pm b/PVE/Storage/LVMPlugin.pm
index fd0d339..94bb11b 100644
--- a/PVE/Storage/LVMPlugin.pm
+++ b/PVE/Storage/LVMPlugin.pm
@@ -215,8 +215,8 @@ sub parse_volname {
parse_lvm_name($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 lvm volume name '$volname'\n";
--
1.7.10.4
More information about the pve-devel
mailing list