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.

64 lines
1.9 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. #config lun 2_1
  45. # option device /mnt/iscsi.img
  46. #config lun 2_2
  47. # option device /dev/sdc
  48. #config account
  49. # list target 1
  50. # list target 2
  51. # option user "username1"
  52. # option password "pass1"
  53. #config account
  54. # option target 2
  55. # option user "user2"
  56. # option password "pwd2"
  57. # option outgoing 1