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

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'
# list allow_name 'iqn.1994-05.org.example:fedcba987654'
# list allow_address '192.168.2.128/27'
#config target 2
# option name 'iqn.2012-06.org.openwrt:t2'
# all options are set to default, except for the device
# lun "name" is constructed as TGTID_LUN
#config lun 1_1
# 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 device /mnt/iscsi.img
#config lun 2_2
# option device /dev/sdc
#config account
# list target 1
# list target 2
# option user "username1"
# option password "pass1"
#config account
# option target 2
# option user "user2"
# option password "pwd2"
# option outgoing 1