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.

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