summaryrefslogtreecommitdiff
path: root/include/iscsi_err.h
Commit message (Collapse)AuthorAgeFilesLines
* iscsiadm: fix parallel rescan handling of exit codesChris Leech2016-04-121-0/+2
| | | | | | | | | | | | | | | | | The parallel rescan patches work, in so much as the rescans happen, but if a target is specified the non-matching cases cause warning to be printed and a non-zero exit code. To reproduce: have more than one session to different targets, issue a node mode rescan command to one of them (-m node -T <iqn.target> -R). The problem is that while exit() takes an int, only the low byte is part of the exit code and it's combined with other exit status information. iscsiadm tries to use exit(-1) to indicate a non-match (not a fatal error). The value retrieved with wait() after an exit(-1) is actually 65280. Fix this by making use of the wait.h macros for checking the exit code.
* Fix discovery error return without return valueLee Duncan2013-06-261-0/+2
| | | | | | | | openSUSE Build Service compiler noticed that one discovery error path did not have a return value, so an appropriate error is now being returned. Signed-of-by: Lee Duncan <lduncan@suse.com>
* ISCSID: Added socket communication hooks for uipMike Christie2013-05-281-0/+2
| | | | | | | | | | | | | From Eddie Wai: This patch adds the communication path between iscsid->iscsiuio. It utilizes the set_net_config func ptr in the iscsi_transport_template to initiate the callbacks. Two new files are introduced: uip_mgmt_ipc.h and uip_mgmt_ipc.c Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>
* iscsi tools: Add support to display a host's CHAP list and deleteMike Christie2012-03-061-0/+2
| | | | | | | | | | | | Drivers like qla4xxx store the CHAP info in a table that is managed at the host level. This patch allows you to see and delete the CHAP entries on the host. Patch from: Nilesh Javali <nilesh.javali@qlogic.com> [lots of bug fixes by Mike Christie] Signed-off-by: Nilesh Javali <nilesh.javali@qlogic.com> Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
* iscsi tools: added ping supportMike Christie2012-03-061-0/+2
| | | | | | | | | From: Vikas Chaudhary <vikas.chaudhary@qlogic.com> Added ping support for network connection diagnostics. [cleaned up output by Mike Christie] Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
* iscsi tools: convert discovery code to iscsi error codesMike Christie2011-01-311-0/+4
| | | | | This just converts the iscsi discovery code to the iscsi_err.h error codes.
* iscsid: add new auth error codeMike Christie2011-01-311-0/+2
| | | | | | Add a new auth error code to make it easier for users to tell if it failed due to a auth error vs other target login error.
* iscsi tools: fix iscsiadm exit codesMike Christie2011-01-311-0/+63
iscsiadm/iscsistart return a mix of type of returns codes. Sometimes -1 and sometimes a EXYZ type of error code. This patch has them return a ISCSI_ERR value. See iscsiadm man page EXIT STATUS section for error code definitions.