[pve-devel] [PATCH 13/16] rbd : volume_snapshot_delete : parse_volname

Alexandre Derumier aderumier at odiso.com
Sun Feb 3 09:49:40 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 298faed..922e309 100644
--- a/PVE/Storage/RBDPlugin.pm
+++ b/PVE/Storage/RBDPlugin.pm
@@ -465,7 +465,9 @@ sub volume_snapshot_delete {
 
     return 1 if $running;
 
-    my $cmd = &$rbd_cmd($scfg, $storeid, 'snap', 'rm', '--snap', $snap, $volname);
+    my ($vtype, $name, $vmid) = $class->parse_volname($volname);
+
+    my $cmd = &$rbd_cmd($scfg, $storeid, 'snap', 'rm', '--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