| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
* Use libopeniscsiusr for `iscsiadm -m session -P <0-3>` command.
* Use libopeniscsiusr for iSCSI session information used by
`iscsiadm -m node -H <host_no> -P <2 - 4>`command.
* Since `/sys/class/iscsi_session/session1/username` require root
permission, this patch require `iscsiadm` been ran with root
privilege.
Signed-off-by: Gris Ge <fge@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The server might already been terminated when iscsiadm tries to
send a request to it, hence we might be waiting forever for a reply.
With this patchset we're waiting at most one minute before giving up,
avoiding a hang in iscsiadm.
Changes since v2:
* rework readability in new poll() code
Changes since v1:
* Break out of poll() loop on error
* Initialize discovery timeout
Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Lee Duncan <lduncan@suse.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I have analysed and coded on some part of it on this weekend :-
For timeout and CHAP I have taken following parameters values from /sys
and printed it.
For integers, like timeout:-
while fetching from sysfs_get_str(), I am setting timeouts to -1 for
indicating error and also in qla card's case where chap is not supported
in
/sys,
and then while printing, checking same value by taking its complement.
I found in iscsid.conf file setting timeout value to -1 to huge -ve
value is
valid (as after setting that can restart iscsid successfully) but not
really
sure does user uses it.
I assume user never uses -1 for timeout in iscsid.conf file, so I have
used
it in following code for error purpose:-
Signed-off-by: Rahul Gupta <rahulrgupta27@gmail.com>
iSCSI user space TODO item-2 : Displaying timeout and CHAP.
|
|
If you run
iscsiadm -m iface -P 1
or
iscsiadm -m iface -I $my_iface -P 1
we print the iface info and if possible the host number and state
(only for offload hbas).
The P2 level will print the session running through a iface.
The P3 level will print the negotiated iscsi params for each session.
The P4 level will print the scsi devices accessed through each
session.
|