[pve-devel] [PATCH 04/48] sheepdog : add volume_protect
Alexandre Derumier
aderumier at odiso.com
Tue Jan 29 17:13:46 CET 2013
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 455a378..be1549d 100644
--- a/PVE/Storage/SheepdogPlugin.pm
+++ b/PVE/Storage/SheepdogPlugin.pm
@@ -339,4 +339,10 @@ sub volume_has_feature {
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