[pve-devel] [PATCH 04/20] sheepdog : add volume_protect

Alexandre Derumier aderumier at odiso.com
Wed Dec 12 13:54:47 CET 2012


return undef, as sheepdog doesn't need protection

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

diff --git a/PVE/Storage/SheepdogPlugin.pm b/PVE/Storage/SheepdogPlugin.pm
index e0bf6c6..8c295a1 100644
--- a/PVE/Storage/SheepdogPlugin.pm
+++ b/PVE/Storage/SheepdogPlugin.pm
@@ -325,4 +325,10 @@ sub volume_snapshot_delete {
     return undef;
 }
 
+sub volume_protect {
+    my ($class, $scfg, $storeid, $volname, $snap, $read_only) = @_;
+    #Sheepdog doesn't need to protect
+    return undef;
+}
+
 1;
-- 
1.7.10.4




More information about the pve-devel mailing list