[pve-devel] [PATCH 08/20] iscsi : add volume_protect
Alexandre Derumier
aderumier at odiso.com
Tue Dec 4 12:20:22 CET 2012
we can't protect an iscsi device
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/Storage/ISCSIPlugin.pm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/PVE/Storage/ISCSIPlugin.pm b/PVE/Storage/ISCSIPlugin.pm
index 173ca1d..9e53167 100644
--- a/PVE/Storage/ISCSIPlugin.pm
+++ b/PVE/Storage/ISCSIPlugin.pm
@@ -383,5 +383,11 @@ sub volume_resize {
die "volume resize is not possible on iscsi device";
}
+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