[pve-devel] [PATCH 30/44] sheepdog : volume_snapshot_rollback : parse_volname
Alexandre Derumier
aderumier at odiso.com
Tue Feb 5 12:55:57 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 197fd96..9ed36e9 100644
--- a/PVE/Storage/SheepdogPlugin.pm
+++ b/PVE/Storage/SheepdogPlugin.pm
@@ -404,8 +404,11 @@ sub volume_snapshot {
sub volume_snapshot_rollback {
my ($class, $scfg, $storeid, $volname, $snap) = @_;
- my $cmd = &$collie_cmd($scfg, 'vdi', 'rollback', '-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', 'rollback', '-s', $snap, $name);
+ run_command($cmd, errmsg => "sheepdog snapshot $name' error");
}
--
1.7.10.4
More information about the pve-devel
mailing list