]> git.proxmox.com Git - pve-storage.git/commitdiff
sheepdog : volume_snapshot : parse_volname
authorAlexandre Derumier <aderumier@odiso.com>
Tue, 5 Feb 2013 11:55:56 +0000 (12:55 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 14 Feb 2013 09:22:02 +0000 (10:22 +0100)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/Storage/SheepdogPlugin.pm

index 967cc10168d91a9ec7a07258d0429df46471627e..a547138aa6250173c6351739cc50c8bf833d1a0b 100644 (file)
@@ -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;