[pve-devel] [PATCH 4/8] sheepdog : add volume_lock && volume_unlock
Alexandre Derumier
aderumier at odiso.com
Thu Nov 29 10:38:51 CET 2012
return undef, as sheepdog doesn't need locking
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..dd0184b 100644
--- a/PVE/Storage/SheepdogPlugin.pm
+++ b/PVE/Storage/SheepdogPlugin.pm
@@ -325,4 +325,16 @@ sub volume_snapshot_delete {
return undef;
}
+sub volume_lock {
+ my ($class, $scfg, $storeid, $volname, $snap) = @_;
+ #Sheepdog doesn't need to lock
+ return undef;
+}
+
+sub volume_unlock {
+ my ($class, $scfg, $storeid, $volname, $snap) = @_;
+ #Sheepdog doesn't need to lock
+ return undef;
+}
+
1;
--
1.7.10.4
More information about the pve-devel
mailing list