You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.1 KiB

  1. config options 'tgt'
  2. # iothreads limits number of worker threads per rdwr target, default is 16
  3. # which seems to be too much for an avarage router
  4. option iothreads '2'
  5. # option nop_count '3'
  6. # option nop_interval '1'
  7. # option logging '0'
  8. # list portal '[::1]'
  9. # list portal '127.0.0.1:3261'
  10. # list portal '0.0.0.0:3262'
  11. # list portal '[::]:3263'
  12. config target 1
  13. option name 'iqn.2012-06.org.openwrt:target1'
  14. # list allow_name 'iqn.1994-05.org.example:fedcba987654'
  15. # list allow_address '192.168.2.128/27'
  16. #config target 2
  17. # option name 'iqn.2012-06.org.openwrt:t2'
  18. # all options are set to default, except for the device
  19. # lun "name" is constructed as TGTID_LUN
  20. #config lun 1_1
  21. # option 'device' '/dev/sda'
  22. # type of scsi device. available options: disk, cd, pt (sg passthrough)
  23. # option 'type' 'disk'
  24. # backing store access method: rdwr (read-write), aio (async IO), sg (for pt type only, device must be /dev/sgN)
  25. # option 'bstype' 'aio'
  26. # set sync and/or direct flags when opening device, affect only rdwr
  27. # option 'sync' '0'
  28. # option 'direct' '0'
  29. # block size for lun, default is 512
  30. # option 'blocksize' 4096
  31. # override SCSI mode page, see tgtadm man page for details
  32. # option 'mode_page' 'string'
  33. # vendor, product, revision, SCSI ID and SCSI Serial number
  34. # option 'vendor_id' 'string'
  35. # option 'product_id' 'string'
  36. # option 'product_rev' 'string'
  37. # option 'scsi_id' 'string'
  38. # option 'scsi_sn' 'string'
  39. # refuse write attempts. applies only to disk type
  40. # option 'readonly' '0'
  41. # Disk devices default to non-removable, cd - to removable
  42. # option 'removable' '0'
  43. # 0 = Classic sense format, 1 = Support descriptor format.
  44. # option 'sense_format' '0'
  45. # Rotaion rate: 0: not reported, 1: non-rotational medium (SSD), 2-1024: reserverd, 1025+: "Nominal rotation rate"
  46. # option 'rotation_rate' '0'
  47. #config lun 2_1
  48. # option device /mnt/iscsi.img
  49. #config lun 2_2
  50. # option device /dev/sdc
  51. #config account
  52. # list target 1
  53. # list target 2
  54. # option user "username1"
  55. # option password "pass1"
  56. #config account
  57. # option target 2
  58. # option user "user2"
  59. # option password "pwd2"
  60. # option outgoing 1