Module Name: src Committed By: jdc Date: Tue Jul 3 20:48:40 UTC 2012
Modified Files: src/sbin/iscsictl [netbsd-6]: iscsic_driverif.c src/sbin/iscsid [netbsd-6]: iscsid_discover.c src/sys/dev/iscsi [netbsd-6]: iscsi_globals.h iscsi_ioctl.c iscsi_main.c iscsi_rcv.c iscsi_send.c iscsi_text.c iscsi_utils.c Log Message: Pull up revisions: src/sys/dev/iscsi/iscsi_globals.h revisions 1.3,1.4 src/sys/dev/iscsi/iscsi_main.c revisions 1.4,1.5 src/sys/dev/iscsi/iscsi_text.c revisions 1.4,1.5 src/sys/dev/iscsi/iscsi_ioctl.c revisions 1.3,1.4 src/sys/dev/iscsi/iscsi_send.c revisions 1.3,1.4,1.5 src/sys/dev/iscsi/iscsi_utils.c revisions 1.2,1.3,1.4 src/sbin/iscsid/iscsid_discover.c revision 1.4 src/sys/dev/iscsi/iscsi_rcv.c revision 1.3 src/sbin/iscsictl/iscsic_driverif.c revisions 1.5,1.6 (requested by martin in ticket #357, with updates from mhitch and mlelstv). avoid namespace pollution when debugging don't panic when printing data for a dead (NULL) connection Close file descriptor passed into the kernel on success. Fix locking of file handle. More cleanup on error paths. Keep track of CCBs, so they cannot be used after a session ends. Handle CCB timeouts even when the connection is terminated. Compute firstdata, firstimmed correctly. assemble_login_parameters() has a strange error reporting convention: errors are positive numbers, so <= 0 is good, not >= ... This makes CHAP authenticated iscsi logins work. use first successful connection to a ISNS server Add more debugging, fix filehandle usage, login negotiation and session shutdown. Add #ifdef'd code to send negotiation parameters in hex instead of base64, so it works against older Linux targets. report luns returns a 32bit list length. Make digests work also on big endian machines. it's really 32bit To generate a diff of this commit: cvs rdiff -u -r1.2.4.1 -r1.2.4.2 src/sbin/iscsictl/iscsic_driverif.c cvs rdiff -u -r1.3 -r1.3.2.1 src/sbin/iscsid/iscsid_discover.c cvs rdiff -u -r1.2 -r1.2.4.1 src/sys/dev/iscsi/iscsi_globals.h cvs rdiff -u -r1.2 -r1.2.2.1 src/sys/dev/iscsi/iscsi_ioctl.c cvs rdiff -u -r1.1.8.1 -r1.1.8.2 src/sys/dev/iscsi/iscsi_main.c \ src/sys/dev/iscsi/iscsi_rcv.c src/sys/dev/iscsi/iscsi_send.c cvs rdiff -u -r1.3 -r1.3.2.1 src/sys/dev/iscsi/iscsi_text.c cvs rdiff -u -r1.1 -r1.1.8.1 src/sys/dev/iscsi/iscsi_utils.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.