[pve-devel] [PATCH 43/44] nexenta : volume_snapshot_rollback : parse_volname
Alexandre Derumier
aderumier at odiso.com
Tue Feb 5 12:56:10 CET 2013
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/Storage/NexentaPlugin.pm | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/PVE/Storage/NexentaPlugin.pm b/PVE/Storage/NexentaPlugin.pm
index 3b51e4d..5a18fad 100644
--- a/PVE/Storage/NexentaPlugin.pm
+++ b/PVE/Storage/NexentaPlugin.pm
@@ -456,13 +456,15 @@ sub volume_snapshot {
sub volume_snapshot_rollback {
my ($class, $scfg, $storeid, $volname, $snap) = @_;
- nexenta_delete_lu($scfg, $volname);
+ my ($vtype, $name, $vmid) = $class->parse_volname($volname);
+
+ nexenta_delete_lu($scfg, $name);
- nexenta_request($scfg, 'rollback', 'snapshot', "$scfg->{pool}/$volname\@$snap", '');
+ nexenta_request($scfg, 'rollback', 'snapshot', "$scfg->{pool}/$name\@$snap", '');
- nexenta_import_lu($scfg, $volname);
+ nexenta_import_lu($scfg, $name);
- nexenta_add_lun_mapping_entry($scfg, $volname);
+ nexenta_add_lun_mapping_entry($scfg, $name);
}
sub volume_snapshot_delete {
--
1.7.10.4
More information about the pve-devel
mailing list