2 # iothreads limits number of worker threads per rdwr target, default is 16
3 # which seems to be too much for an avarage router
6 # option nop_interval '1'
8 # list portal '127.0.0.1:3261'
9 # list portal '0.0.0.0:3262'
10 # list portal '[::]:3263'
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'
18 # option name 'iqn.2012-06.org.openwrt:t2'
20 # all options are set to default, except for the device
21 # lun "name" is constructed as TGTID_LUN
23 # option 'device' '/dev/sda'
24 # type of scsi device. available options: disk, cd, pt (sg passthrough)
25 # option 'type' 'disk'
26 # backing store access method: rdwr (read-write), aio (async IO), sg (for pt type only, device must be /dev/sgN)
27 # option 'bstype' 'aio'
28 # set sync and/or direct flags when opening device, affect only rdwr
31 # block size for lun, default is 512
32 # option 'blocksize' 4096
33 # override SCSI mode page, see tgtadm man page for details
34 # option 'mode_page' 'string'
35 # vendor, product, revision, SCSI ID and SCSI Serial number
36 # option 'vendor_id' 'string'
37 # option 'product_id' 'string'
38 # option 'product_rev' 'string'
39 # option 'scsi_id' 'string'
40 # option 'scsi_sn' 'string'
41 # refuse write attempts. applies only to disk type
42 # option 'readonly' '0'
43 # Disk devices default to non-removable, cd - to removable
44 # option 'removable' '0'
45 # 0 = Clasic sense format, 1 = Support descriptor format.
46 # option 'sense_format' '0'
49 # option device /mnt/iscsi.img
52 # option device /dev/sdc
57 # option user "username1"
58 # option password "pass1"
63 # option password "pwd2"