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

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


we can't lock an iscsi device

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

diff --git a/PVE/Storage/ISCSIPlugin.pm b/PVE/Storage/ISCSIPlugin.pm
index 173ca1d..0528599 100644
--- a/PVE/Storage/ISCSIPlugin.pm
+++ b/PVE/Storage/ISCSIPlugin.pm
@@ -383,5 +383,15 @@ sub volume_resize {
     die "volume resize 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