[pve-devel] [PATCH 31/44] sheepdog : volume_snapshot_delete : parse_volname

Alexandre Derumier aderumier at odiso.com
Tue Feb 5 12:55:58 CET 2013


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/Storage/SheepdogPlugin.pm |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/PVE/Storage/SheepdogPlugin.pm b/PVE/Storage/SheepdogPlugin.pm
index 9ed36e9..eee1ee7 100644
--- a/PVE/Storage/SheepdogPlugin.pm
+++ b/PVE/Storage/SheepdogPlugin.pm
@@ -417,8 +417,11 @@ sub volume_snapshot_delete {
 
     return 1 if $running;
 
-    my $cmd = &$collie_cmd($scfg, 'vdi', 'delete', '-s', $snap, $volname);
-    run_command($cmd, errmsg => "sheepdog snapshot $volname' error");
+    my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) =
+	$class->parse_volname($volname);
+
+    my $cmd = &$collie_cmd($scfg, 'vdi', 'delete', '-s', $snap, $name);
+    run_command($cmd, errmsg => "sheepdog snapshot $name' error");
 
     return undef;
 }
-- 
1.7.10.4




More information about the pve-devel mailing list