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

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