tgt: update to 1.0.79

Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
This commit is contained in:
Maxim Storchak
2019-07-13 15:10:24 +03:00
parent 9282044851
commit 9c5d11a9da
3 changed files with 10 additions and 5 deletions
+1
View File
@@ -4,6 +4,7 @@ config options 'tgt'
option iothreads '2'
# option nop_count '3'
# option nop_interval '1'
# option logging '0'
# list portal '[::1]'
# list portal '127.0.0.1:3261'
# list portal '0.0.0.0:3262'
+6 -2
View File
@@ -184,16 +184,20 @@ validate_tgt_section() {
'iothreads:uinteger' \
'portal:list(string)' \
'nop_interval:uinteger' \
'nop_count:uinteger'
'nop_count:uinteger' \
'logging:bool:0'
}
start_tgt_instance() {
local fg_flag=-f
[ "$2" = 0 ] || {
$logger "Validation failed for tgt options"
return 1
}
procd_open_instance
procd_set_param command $PROG -f
procd_set_param command $PROG
[ "$logging" -eq 1 ] && fg_flag=-D
procd_append_param command "$fg_flag"
[ "$iothreads" ] && procd_append_param command -t "$iothreads"
[ "$portal$nop_interval$nop_count" ] && {
local iscsi="" i