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

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