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

index 9bdbd6b4723b6ca4e3711e165515ad76f1be5eba..c21b15c4efdbf74ac0f8170f07e235bb60f60626 100644 (file)
@@ -470,7 +470,9 @@ sub volume_snapshot_rollback {
 sub volume_snapshot_delete {
     my ($class, $scfg, $storeid, $volname, $snap, $running) = @_;
 
-    nexenta_request($scfg, 'destroy', 'snapshot', "$scfg->{pool}/$volname\@$snap", '');
+    my ($vtype, $name, $vmid) = $class->parse_volname($volname);
+
+    nexenta_request($scfg, 'destroy', 'snapshot', "$scfg->{pool}/$name\@$snap", '');
 }
 
 sub volume_has_feature {