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

Alexandre Derumier aderumier at odiso.com
Tue Dec 4 12:20:18 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 3e5839e..bd59ce0 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