[pve-devel] [PATCH 44/44] nexenta : volume_snapshot_delete : parse_volname
Alexandre Derumier
aderumier at odiso.com
Tue Feb 5 12:56:11 CET 2013
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/Storage/NexentaPlugin.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/PVE/Storage/NexentaPlugin.pm b/PVE/Storage/NexentaPlugin.pm
index 5a18fad..8a4faed 100644
--- a/PVE/Storage/NexentaPlugin.pm
+++ b/PVE/Storage/NexentaPlugin.pm
@@ -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 {
--
1.7.10.4
More information about the pve-devel
mailing list