tcm_qla2xxx.txt 889 B

1234567891011121314151617181920212223
  1. tcm_qla2xxx jam_host attribute
  2. ------------------------------
  3. There is now a new module endpoint atribute called jam_host
  4. attribute: jam_host: boolean=0/1
  5. This attribute and accompanying code is only included if the
  6. Kconfig parameter TCM_QLA2XXX_DEBUG is set to Y
  7. By default this jammer code and functionality is disabled
  8. Use this attribute to control the discarding of SCSI commands to a
  9. selected host.
  10. This may be useful for testing error handling and simulating slow drain
  11. and other fabric issues.
  12. Setting a boolean of 1 for the jam_host attribute for a particular host
  13. will discard the commands for that host.
  14. Reset back to 0 to stop the jamming.
  15. Enable host 4 to be jammed
  16. echo 1 > /sys/kernel/config/target/qla2xxx/21:00:00:24:ff:27:8f:ae/tpgt_1/attrib/jam_host
  17. Disable jamming on host 4
  18. echo 0 > /sys/kernel/config/target/qla2xxx/21:00:00:24:ff:27:8f:ae/tpgt_1/attrib/jam_host