[pve-devel] [PATCH 6/8] lvm : add volume_lock && volume_unlock

Alexandre Derumier aderumier at odiso.com
Thu Nov 29 10:38:53 CET 2012


we can't lock a lvm volume.

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

diff --git a/PVE/Storage/LVMPlugin.pm b/PVE/Storage/LVMPlugin.pm
index 9199db1..f4ae9f7 100644
--- a/PVE/Storage/LVMPlugin.pm
+++ b/PVE/Storage/LVMPlugin.pm
@@ -438,4 +438,16 @@ sub volume_snapshot_delete {
     die "lvm snapshot delete is not implemented";
 }
 
+sub volume_lock {
+    my ($class, $scfg, $storeid, $volname, $snap) = @_;
+
+    die "you can't lock a lvm device";
+}
+
+sub volume_unlock {
+    my ($class, $scfg, $storeid, $volname, $snap) = @_;
+
+    die "you can't lock a lvm device";
+}
+
 1;
-- 
1.7.10.4




More information about the pve-devel mailing list