nexenta: add volume_snapshot_delete
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
9cd89ee32f
commit
5d8f5e22b9
@ -357,4 +357,11 @@ sub volume_snapshot_rollback {
|
|||||||
nexenta_add_lun_mapping_entry($volname, $scfg);
|
nexenta_add_lun_mapping_entry($volname, $scfg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub volume_snapshot_delete {
|
||||||
|
my ($class, $scfg, $storeid, $volname, $snap, $running) = @_;
|
||||||
|
|
||||||
|
my $json = '{"method": "destroy","object" : "snapshot","params": ["'.$scfg->{pool}.'/'.$volname.'@'.$snap.'"]}';
|
||||||
|
nexenta_request($scfg, $json);
|
||||||
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|||||||
Reference in New Issue
Block a user