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

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


return undef, as sheepdog doesn't need protection

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

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




More information about the pve-devel mailing list