[pve-devel] [PATCH 06/20] lvm : add volume_protect && volume_unprotect

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


we can't protect 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..4fb786a 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_protect {
+    my ($class, $scfg, $storeid, $volname, $snap) = @_;
+
+    die "you can't protect a lvm device";
+}
+
+sub volume_unprotect {
+    my ($class, $scfg, $storeid, $volname, $snap) = @_;
+
+    die "you can't unprotect a lvm device";
+}
+
 1;
-- 
1.7.10.4




More information about the pve-devel mailing list