[pve-devel] [PATCH 07/48] iscsidirect : add volume_protect

Alexandre Derumier aderumier at odiso.com
Tue Jan 29 17:13:49 CET 2013


we can't protect an iscsi volume

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

diff --git a/PVE/Storage/ISCSIDirectPlugin.pm b/PVE/Storage/ISCSIDirectPlugin.pm
index b648fd5..95faa8a 100644
--- a/PVE/Storage/ISCSIDirectPlugin.pm
+++ b/PVE/Storage/ISCSIDirectPlugin.pm
@@ -214,4 +214,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