[pve-devel] [PATCH 12/44] rbd : volume_snapshot : parse volname
Alexandre Derumier
aderumier at odiso.com
Tue Feb 5 12:55:39 CET 2013
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/Storage/RBDPlugin.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm
index 8020864..a6c4762 100644
--- a/PVE/Storage/RBDPlugin.pm
+++ b/PVE/Storage/RBDPlugin.pm
@@ -444,7 +444,9 @@ sub volume_snapshot {
return 1 if $running;
- my $cmd = &$rbd_cmd($scfg, $storeid, 'snap', 'create', '--snap', $snap, $volname);
+ my ($vtype, $name, $vmid) = $class->parse_volname($volname);
+
+ my $cmd = &$rbd_cmd($scfg, $storeid, 'snap', 'create', '--snap', $snap, $name);
run_command($cmd, errmsg => "rbd snapshot $volname' error", errfunc => sub {});
return undef;
}
--
1.7.10.4
More information about the pve-devel
mailing list