tgt: update to 1.0.48 and add all stuff announced in the the previous commit

Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
This commit is contained in:
Maxim Storchak
2014-06-11 10:09:08 +03:00
parent 52cd0103c0
commit bf1f6fc330
6 changed files with 217 additions and 66 deletions
+39 -13
View File
@@ -1,33 +1,59 @@
config options 'tgt'
# iothreads limits number of worker threads per rdwr target, default is 16
# which seems to be too much for an avarage router
option iothreads '2'
# option nop_count '3'
# option nop_interval '1'
# list portal '[::1]'
# list portal '127.0.0.1:3261'
# list portal '0.0.0.0:3262'
# list portal '[::]:3263'
config target 1
option name 'iqn.2012-06.org.openwrt:target1'
option allow ALL
# list allow_name 'iqn.1994-05.org.example:fedcba987654'
# list allow_address '172.19.218.128/27'
#config target 2
# option name 'iqn.2012-06.org.openwrt:t2'
# option allow 192.168.1.0/24
# all options are set to default, except for the device
# for all type and bstype values see tgtd(8)
# lun "name" is constructed as TGTID_LUN
#config lun 1_1
# option readonly 0
# option device /dev/sda
# option type disk
# option bstype rdwr
# option sync 0
# option direct 0
# option 'device' '/dev/sda'
# type of scsi device. available options: disk, cd, pt (sg passthrough)
# option 'type' 'disk'
# backing store access method: rdwr (read-write), aio (async IO), sg (for pt type only, device must be /dev/sgN)
# option 'bstype' 'aio'
# set sync and/or direct flags when opening device, affect only rdwr
# option 'sync' '0'
# option 'direct' '0'
# block size for lun, default is 512
# option 'blocksize' 4096
# override SCSI mode page, see tgtadm man page for details
# option 'mode_page' 'string'
# vendor, product, revision, SCSI ID and SCSI Serial number
# option 'vendor_id' 'string'
# option 'product_id' 'string'
# option 'product_rev' 'string'
# option 'scsi_id' 'string'
# option 'scsi_sn' 'string'
# refuse write attempts. applies only to disk type
# option 'readonly' '0'
# Disk devices default to non-removable, cd - to removable
# option 'removable' '0'
# 0 = Clasic sense format, 1 = Support descriptor format.
# option 'sense_format' '0'
#config lun 2_1
# option readonly 0
# option device /mnt/iscsi.img
#config lun 2_2
# option device /dev/sdc
#config account
# option target 1
# list target 1
# list target 2
# option user "username1"
# option password "pass1"