[pve-devel] [PATCH 29/44] sheepdog : volume_snapshot : parse_volname

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


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

diff --git a/PVE/Storage/SheepdogPlugin.pm b/PVE/Storage/SheepdogPlugin.pm
index 649d49b..197fd96 100644
--- a/PVE/Storage/SheepdogPlugin.pm
+++ b/PVE/Storage/SheepdogPlugin.pm
@@ -392,7 +392,10 @@ sub volume_snapshot {
 
     return 1 if $running;
 
-    my $cmd = &$collie_cmd($scfg, 'vdi', 'snapshot', '-s', $snap, $volname);
+    my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) =
+	$class->parse_volname($volname);
+
+    my $cmd = &$collie_cmd($scfg, 'vdi', 'snapshot', '-s', $snap, $name);
     run_command($cmd, errmsg => "sheepdog snapshot $volname' error");
 
     return undef;
-- 
1.7.10.4




More information about the pve-devel mailing list