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

50a52f
From 6602f08bfcc2b2e75d1a58671cb160c96cf2d99b Mon Sep 17 00:00:00 2001
587c20
From: Chris Leech <cleech@redhat.com>
587c20
Date: Mon, 19 Nov 2012 16:37:13 -0800
50a52f
Subject: [PATCH] update initscripts and docs
587c20
587c20
---
587c20
 README          | 10 ++++------
587c20
 etc/iscsid.conf | 21 ++++++++++-----------
587c20
 usr/idbm.c      |  4 ++++
587c20
 3 files changed, 18 insertions(+), 17 deletions(-)
587c20
587c20
diff --git a/README b/README
50a52f
index 2499d9a..c05814a 100644
587c20
--- a/README
587c20
+++ b/README
587c20
@@ -77,11 +77,6 @@ the cache sync command will fail.
587c20
 - iscsiadm's -P 3 option will not print out scsi devices.
587c20
 - iscsid will not automatically online devices.
587c20
 
587c20
-You need to enable "Cryptographic API" under "Cryptographic options" in the
587c20
-kernel config. And you must enable "CRC32c CRC algorithm" even if
587c20
-you do not use header or data digests. They are the kernel options
587c20
-CONFIG_CRYPTO and CONFIG_CRYPTO_CRC32C, respectively.
587c20
-
587c20
 The userspace components iscsid, iscsiadm and iscsistart require the
587c20
 open-isns library, which can be found here:
587c20
 	https://github.com/gonzoleeman/open-isns/releases
587c20
@@ -1151,7 +1146,7 @@ Red Hat or Fedora:
587c20
 -----------------
587c20
 To start open-iscsi in Red Hat/Fedora you can do:
587c20
 
587c20
-	service open-iscsi start
587c20
+	service iscsi start
587c20
 
587c20
 To get open-iscsi to automatically start at run time you may have to
587c20
 run:
587c20
@@ -1353,6 +1348,9 @@ iscsid will only perform rediscovery when it gets a SCN from the server.
587c20
 #   linux-isns (SLES's iSNS server) where it sometimes does not send SCN
587c20
 #   events in the proper format, so they may not get handled.
587c20
 
587c20
+To set the startup value, so that nodes are not logged into automatically
587c20
+use the value "manual".
587c20
+
587c20
 Examples
587c20
 --------
587c20
 
587c20
diff --git a/etc/iscsid.conf b/etc/iscsid.conf
50a52f
index 70985af..2f3a28c 100644
587c20
--- a/etc/iscsid.conf
587c20
+++ b/etc/iscsid.conf
587c20
@@ -19,7 +19,7 @@
587c20
 # the time then leave this attribute commented out.
587c20
 #
587c20
 # Default for Fedora and RHEL. (uncomment to activate).
587c20
-# iscsid.startup = /bin/systemctl start iscsid.socket iscsiuio.soccket
587c20
+iscsid.startup = /bin/systemctl start iscsid.socket iscsiuio.socket
587c20
 # 
587c20
 # Default if you are not using systemd (uncomment to activate)
587c20
 # iscsid.startup = /usr/bin/service start iscsid
587c20
@@ -41,8 +41,8 @@
587c20
 # To request that the iscsi initd scripts startup a session set to "automatic".
587c20
 # node.startup = automatic
587c20
 #
587c20
-# To manually startup the session set to "manual". The default is manual.
587c20
-node.startup = manual
587c20
+# To manually startup the session set to "manual". The default is automatic.
587c20
+node.startup = automatic
587c20
 
587c20
 # For "automatic" startup nodes, setting this to "Yes" will try logins on each
587c20
 # available iface until one succeeds, and then stop.  The default "No" will try
587c20
@@ -264,28 +264,27 @@ node.conn[0].iscsi.MaxXmitDataSegmentLength = 0
587c20
 discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 32768
587c20
 
587c20
 # To allow the targets to control the setting of the digest checking,
587c20
-# with the initiator requesting a preference of enabling the checking, uncomment# one or both of the following lines:
587c20
+# with the initiator requesting a preference of enabling the checking, uncomment
587c20
+# the following lines (Data digests are not supported.):
587c20
 #node.conn[0].iscsi.HeaderDigest = CRC32C,None
587c20
-#node.conn[0].iscsi.DataDigest = CRC32C,None
587c20
+
587c20
 #
587c20
 # To allow the targets to control the setting of the digest checking,
587c20
 # with the initiator requesting a preference of disabling the checking,
587c20
-# uncomment one or both of the following lines:
587c20
+# uncomment the following line:
587c20
 #node.conn[0].iscsi.HeaderDigest = None,CRC32C
587c20
-#node.conn[0].iscsi.DataDigest = None,CRC32C
587c20
 #
587c20
 # To enable CRC32C digest checking for the header and/or data part of
587c20
-# iSCSI PDUs, uncomment one or both of the following lines:
587c20
+# iSCSI PDUs, uncomment the following line:
587c20
 #node.conn[0].iscsi.HeaderDigest = CRC32C
587c20
-#node.conn[0].iscsi.DataDigest = CRC32C
587c20
 #
587c20
 # To disable digest checking for the header and/or data part of
587c20
-# iSCSI PDUs, uncomment one or both of the following lines:
587c20
+# iSCSI PDUs, uncomment the following line:
587c20
 #node.conn[0].iscsi.HeaderDigest = None
587c20
-#node.conn[0].iscsi.DataDigest = None
587c20
 #
587c20
 # The default is to never use DataDigests or HeaderDigests.
587c20
 #
587c20
+node.conn[0].iscsi.HeaderDigest = None
587c20
 
587c20
 # For multipath configurations, you may want more than one session to be
587c20
 # created on each iface record.  If node.session.nr_sessions is greater
587c20
diff --git a/usr/idbm.c b/usr/idbm.c
50a52f
index a2332cc..aed08f2 100644
587c20
--- a/usr/idbm.c
587c20
+++ b/usr/idbm.c
50a52f
@@ -521,9 +521,13 @@ idbm_recinfo_node(node_rec_t *r, recinfo_t *ri)
587c20
 				 IDBM_SHOW, "None", "CRC32C", "CRC32C,None",
587c20
 				 "None,CRC32C", num, 1);
587c20
 		sprintf(key, CONN_DATA_DIGEST, i);
587c20
+
587c20
+#if 0
587c20
+We do not support data digests
587c20
 		__recinfo_int_o4(key, ri, r, conn[i].iscsi.DataDigest, IDBM_SHOW,
587c20
 				 "None", "CRC32C", "CRC32C,None",
587c20
 				 "None,CRC32C", num, 1);
587c20
+#endif
587c20
 		sprintf(key, CONN_IFMARKER, i);
587c20
 		__recinfo_int_o2(key, ri, r, conn[i].iscsi.IFMarker, IDBM_SHOW,
587c20
 				"No", "Yes", num, 1);
587c20
-- 
50a52f
2.21.0
587c20