mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
dc7b5d8684d59eb4e336e0997055134916e73f46
This patch allows reading and writing of the LSI SCSI target id via /proc/scsi_tgt/mpt_scst/x (where x is the controller number). Reading that file dumps various statistics as before: # cat /proc/scsi_tgt/mpt_scst/0 ProductID :0x020b (LSI53C1030) Target Enable :True Target ID :3 Capabilities :0x7087fa0 PhysicalInterface:0x30000fe Configuration :0x3000800 OnBusTimerValue :0x0 TargetConfig :0x1 IDConfig :0x0 PortFlags :0x2000000 PortSettings :0x37020000 Device 00: 0x7087fa0, 0x0 Device 01: 0x7087fa0, 0x0 Device 02: 0x7087fa0, 0x0 Device 03: 0x7087fa0, 0x0 Device 04: 0x7087fa0, 0x0 Device 05: 0x7087fa0, 0x0 Device 06: 0x7087fa0, 0x0 Device 07: 0x7087fa0, 0x0 Device 08: 0x7087fa0, 0x0 Device 09: 0x7087fa0, 0x0 Device 10: 0x7087fa0, 0x0 Device 11: 0x7087fa0, 0x0 Device 12: 0x7087fa0, 0x0 Device 13: 0x7087fa0, 0x0 Device 14: 0x7087fa0, 0x0 Device 15: 0x7087fa0, 0x0 Writing "target_id:n" will change the SCSI target id to n. # echo "target_id:5" > /proc/scsi_tgt/mpt_scst/0 # cat /proc/scsi_tgt/mpt_scst/0 ProductID :0x020b (LSI53C1030) Target Enable :True Target ID :5 Capabilities :0x7087fa0 .... git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@68 d57e44dd-8a1f-0410-8b47-8ef2f437770f
Description
No description provided
Languages
C
90.1%
Perl
4.2%
Shell
1.8%
HTML
1.7%
Makefile
1.2%
Other
0.9%