On 6/8/20 7:06 AM, Bodo Stroesser wrote:
+What:
/sys/class/scsi_target_session/session-N/transport_id/session_id
+Date: June 5, 2020
+KernelVersion: 5.9
+Contact: linux-scsi@xxxxxxxxxxxxxxx
+Description: If is proto=0x5 (iSCSI) and TPID FORMAT=1 this file
will exist
+ and will return the iSCSI Initiator Session ID in ASCII
+ characters that are the hexadecimal digits converted from the
+ binary iSCSI initiator session identifier value. If iSCSI and
+ format=1 is not used by this session this file will not exist.
If I got it right, this is not how the code works.
AFAICS, the file will always exist, but reading it delivers data only if
proto=0x5 (iSCSI) and TPID FORMAT=1
I forgot to update the description when I changed the code. Will update.
Thanks.