[pve-devel] [PATCH 05/20] nexenta : add volume_protect && volume_unprotect

Alexandre Derumier aderumier at odiso.com
Mon Dec 3 14:32:30 CET 2012


return undef, as nexenta have a implicit protection system when creatin clones

Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/Storage/NexentaPlugin.pm |   12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/PVE/Storage/NexentaPlugin.pm b/PVE/Storage/NexentaPlugin.pm
index 386656f..e4fc7f1 100644
--- a/PVE/Storage/NexentaPlugin.pm
+++ b/PVE/Storage/NexentaPlugin.pm
@@ -380,4 +380,16 @@ sub volume_snapshot_delete {
     nexenta_request($scfg, 'destroy', 'snapshot', "$scfg->{pool}/$volname\@$snap", '');
 }
 
+sub volume_protect {
+    my ($class, $scfg, $storeid, $volname, $snap) = @_;
+    #nexenta doesn't need to protect
+    return undef;
+}
+
+sub volume_unprotect {
+    my ($class, $scfg, $storeid, $volname, $snap) = @_;
+    #nexenta doesn't need to unprotect
+    return undef;
+}
+
 1;
-- 
1.7.10.4




More information about the pve-devel mailing list