[pve-devel] [PATCH 7/8] iscsidirect : add volume_lock && volume_unlock

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


we can't lock an iscsi volume

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

diff --git a/PVE/Storage/ISCSIDirectPlugin.pm b/PVE/Storage/ISCSIDirectPlugin.pm
index e2490e8..d1038b8 100644
--- a/PVE/Storage/ISCSIDirectPlugin.pm
+++ b/PVE/Storage/ISCSIDirectPlugin.pm
@@ -208,4 +208,14 @@ sub volume_snapshot_delete {
     die "volume snapshot delete is not possible on iscsi device";
 }
 
+sub volume_lock {
+    my ($class, $scfg, $storeid, $volname, $snap) = @_;
+    die "you can't lock an iscsi device";
+}
+
+sub volume_unlock {
+    my ($class, $scfg, $storeid, $volname, $snap) = @_;
+    die "you can't lock an iscsi device";
+}
+
 1;
-- 
1.7.10.4




More information about the pve-devel mailing list