Merge pull request #8361 from jandelgado/add_udptunnel_package
[feed/packages.git] / net / tgt / files / tgt.config
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
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
17 #config target 2
18 # option name 'iqn.2012-06.org.openwrt:t2'
19
20 # all options are set to default, except for the device
21 # lun "name" is constructed as TGTID_LUN
22 #config lun 1_1
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
29 # option 'sync' '0'
30 # option 'direct' '0'
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 = Classic sense format, 1 = Support descriptor format.
46 # option 'sense_format' '0'
47
48 #config lun 2_1
49 # option device /mnt/iscsi.img
50
51 #config lun 2_2
52 # option device /dev/sdc
53
54 #config account
55 # list target 1
56 # list target 2
57 # option user "username1"
58 # option password "pass1"
59
60 #config account
61 # option target 2
62 # option user "user2"
63 # option password "pwd2"
64 # option outgoing 1