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

Alexandre Derumier aderumier at odiso.com
Tue Dec 4 12:20:19 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 |    6 ++++++
 1 file changed, 6 insertions(+)

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




More information about the pve-devel mailing list