Blame SOURCES/0151-update-initscripts-and-docs.patch

e88930
From 714a9dbed8e4c9d943ce34896a58d48a174f54cb Mon Sep 17 00:00:00 2001
e88930
From: Chris Leech <cleech@redhat.com>
e88930
Date: Mon, 19 Nov 2012 16:37:13 -0800
e88930
Subject: [PATCH] update initscripts and docs
e88930
e88930
---
e88930
 README          |  9 +++------
e88930
 etc/iscsid.conf | 23 +++++++++++------------
e88930
 usr/idbm.c      |  4 ++++
e88930
 3 files changed, 18 insertions(+), 18 deletions(-)
e88930
e88930
diff --git a/README b/README
e88930
index cbe8763..8db3013 100644
e88930
--- a/README
e88930
+++ b/README
e88930
@@ -74,11 +74,6 @@ the cache sync command will fail.
e88930
 - iscsiadm's -P 3 option will not print out scsi devices.
e88930
 - iscsid will not automatically online devices.
e88930
 
e88930
-You need to enable "Cryptographic API" under "Cryptographic options" in the
e88930
-kernel config. And you must enable "CRC32c CRC algorithm" even if
e88930
-you do not use header or data digests. They are the kernel options,
e88930
-CONFIG_CRYPTO and CONFIG_CRYPTO_CRC32C, respectively.
e88930
-
e88930
 The userspace components: iscsid, iscsiadm and iscsistart require the
e88930
 open-isns library which can be found here:
e88930
 
e88930
@@ -1132,7 +1127,7 @@ Red Hat or Fedora:
e88930
 -----------------
e88930
 To start open-iscsi in Red Hat/Fedora you can do:
e88930
 
e88930
-	service open-iscsi start
e88930
+	service iscsi start
e88930
 
e88930
 To get open-iscsi to automatically start at run time you may have to
e88930
 run:
e88930
@@ -1340,6 +1335,8 @@ iscsid will only perform rediscovery when it gets a SCN from the server.
e88930
 #   linux-isns (SLES's iSNS server) where it sometimes does not send SCN
e88930
 #   events in the proper format, so they may not get handled.
e88930
 
e88930
+To set the startup value, so that nodes are not logged into automatically
e88930
+use the value "manual".
e88930
 
e88930
 Example:
e88930
 --------
e88930
diff --git a/etc/iscsid.conf b/etc/iscsid.conf
e88930
index c30a7dc..cfa6844 100644
e88930
--- a/etc/iscsid.conf
e88930
+++ b/etc/iscsid.conf
e88930
@@ -17,10 +17,10 @@
e88930
 # maintainers.
e88930
 #
e88930
 # Default for Fedora and RHEL. (uncomment to activate).
e88930
-# iscsid.startup = /etc/rc.d/init.d/iscsid force-start
e88930
+iscsid.startup = /etc/rc.d/init.d/iscsid force-start
e88930
 # 
e88930
 # Default for upstream open-iscsi scripts (uncomment to activate).
e88930
-iscsid.startup = /sbin/iscsid
e88930
+# iscsid.startup = /sbin/iscsid
e88930
 
e88930
 # Check for active mounts on devices reachable through a session
e88930
 # and refuse to logout if there are any.  Defaults to "No".
e88930
@@ -39,8 +39,8 @@ iscsid.startup = /sbin/iscsid
e88930
 # To request that the iscsi initd scripts startup a session set to "automatic".
e88930
 # node.startup = automatic
e88930
 #
e88930
-# To manually startup the session set to "manual". The default is manual.
e88930
-node.startup = manual
e88930
+# To manually startup the session set to "manual". The default is automatic.
e88930
+node.startup = automatic
e88930
 
e88930
 # For "automatic" startup nodes, setting this to "Yes" will try logins on each
e88930
 # available iface until one succeeds, and then stop.  The default "No" will try
e88930
@@ -262,28 +262,27 @@ node.conn[0].iscsi.MaxXmitDataSegmentLength = 0
e88930
 discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 32768
e88930
 
e88930
 # To allow the targets to control the setting of the digest checking,
e88930
-# with the initiator requesting a preference of enabling the checking, uncomment# one or both of the following lines:
e88930
+# with the initiator requesting a preference of enabling the checking, uncomment
e88930
+# the following lines (Data digests are not supported.):
e88930
 #node.conn[0].iscsi.HeaderDigest = CRC32C,None
e88930
-#node.conn[0].iscsi.DataDigest = CRC32C,None
e88930
+
e88930
 #
e88930
 # To allow the targets to control the setting of the digest checking,
e88930
 # with the initiator requesting a preference of disabling the checking,
e88930
-# uncomment one or both of the following lines:
e88930
+# uncomment the following line:
e88930
 #node.conn[0].iscsi.HeaderDigest = None,CRC32C
e88930
-#node.conn[0].iscsi.DataDigest = None,CRC32C
e88930
 #
e88930
 # To enable CRC32C digest checking for the header and/or data part of
e88930
-# iSCSI PDUs, uncomment one or both of the following lines:
e88930
+# iSCSI PDUs, uncomment the following line:
e88930
 #node.conn[0].iscsi.HeaderDigest = CRC32C
e88930
-#node.conn[0].iscsi.DataDigest = CRC32C
e88930
 #
e88930
 # To disable digest checking for the header and/or data part of
e88930
-# iSCSI PDUs, uncomment one or both of the following lines:
e88930
+# iSCSI PDUs, uncomment the following line:
e88930
 #node.conn[0].iscsi.HeaderDigest = None
e88930
-#node.conn[0].iscsi.DataDigest = None
e88930
 #
e88930
 # The default is to never use DataDigests or HeaderDigests.
e88930
 #
e88930
+node.conn[0].iscsi.HeaderDigest = None
e88930
 
e88930
 # For multipath configurations, you may want more than one session to be
e88930
 # created on each iface record.  If node.session.nr_sessions is greater
e88930
diff --git a/usr/idbm.c b/usr/idbm.c
e88930
index 198a5ef..2d64172 100644
e88930
--- a/usr/idbm.c
e88930
+++ b/usr/idbm.c
e88930
@@ -509,9 +509,13 @@ idbm_recinfo_node(node_rec_t *r, recinfo_t *ri)
e88930
 				 IDBM_SHOW, "None", "CRC32C", "CRC32C,None",
e88930
 				 "None,CRC32C", num, 1);
e88930
 		sprintf(key, CONN_DATA_DIGEST, i);
e88930
+
e88930
+#if 0
e88930
+We do not support data digests
e88930
 		__recinfo_int_o4(key, ri, r, conn[i].iscsi.DataDigest, IDBM_SHOW,
e88930
 				 "None", "CRC32C", "CRC32C,None",
e88930
 				 "None,CRC32C", num, 1);
e88930
+#endif
e88930
 		sprintf(key, CONN_IFMARKER, i);
e88930
 		__recinfo_int_o2(key, ri, r, conn[i].iscsi.IFMarker, IDBM_SHOW,
e88930
 				"No", "Yes", num, 1);
e88930
-- 
e88930
2.5.5
e88930