[pve-devel] [PATCH 08/31] iscsi : add volume_protect

Alexandre Derumier aderumier at odiso.com
Tue Jan 8 15:45:14 CET 2013


we can't protect an iscsi device

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

diff --git a/PVE/Storage/ISCSIPlugin.pm b/PVE/Storage/ISCSIPlugin.pm
index ac8384b..7af9c7c 100644
--- a/PVE/Storage/ISCSIPlugin.pm
+++ b/PVE/Storage/ISCSIPlugin.pm
@@ -389,5 +389,9 @@ sub volume_has_feature {
     return undef;
 }
 
+sub volume_protect {
+    my ($class, $scfg, $storeid, $volname, $snap, $read_only) = @_;
+    die "you can't protect an iscsi device";
+}
 
 1;
-- 
1.7.10.4




More information about the pve-devel mailing list