[pve-devel] [PATCH 05/31] nexenta : add volume_protect
Alexandre Derumier
aderumier at odiso.com
Tue Jan 22 12:36:03 CET 2013
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 9622548..08accb1 100644
--- a/PVE/Storage/NexentaPlugin.pm
+++ b/PVE/Storage/NexentaPlugin.pm
@@ -394,4 +394,10 @@ sub volume_has_feature {
return undef;
}
+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