Browse Source

tgt: update to 1.0.79

Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
lilik-openwrt-22.03
Maxim Storchak 5 years ago
parent
commit
9c5d11a9da
3 changed files with 10 additions and 5 deletions
  1. +3
    -3
      net/tgt/Makefile
  2. +1
    -0
      net/tgt/files/tgt.config
  3. +6
    -2
      net/tgt/files/tgt.init

+ 3
- 3
net/tgt/Makefile View File

@ -4,15 +4,15 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=tgt PKG_NAME:=tgt
PKG_VERSION:=1.0.78
PKG_VERSION:=1.0.79
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/fujita/tgt/tar.gz/v$(PKG_VERSION)? PKG_SOURCE_URL:=https://codeload.github.com/fujita/tgt/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=3ba44d5195b2007c6d9008f46a10f7754c90b9bcf6117a7f3e136accb209faac
PKG_HASH:=6736d799a202ff665549359859441c6d2b5e3425bffef9ee60ab5a101342a40d
PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com> PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
PKG_LICENSE:=GPL-2.0
PKG_LICENSE:=GPL-2.0-only
PKG_USE_MIPS16:=0 PKG_USE_MIPS16:=0
PKG_INSTALL:=1 PKG_INSTALL:=1


+ 1
- 0
net/tgt/files/tgt.config View File

@ -4,6 +4,7 @@ config options 'tgt'
option iothreads '2' option iothreads '2'
# option nop_count '3' # option nop_count '3'
# option nop_interval '1' # option nop_interval '1'
# option logging '0'
# list portal '[::1]' # list portal '[::1]'
# list portal '127.0.0.1:3261' # list portal '127.0.0.1:3261'
# list portal '0.0.0.0:3262' # list portal '0.0.0.0:3262'


+ 6
- 2
net/tgt/files/tgt.init View File

@ -184,16 +184,20 @@ validate_tgt_section() {
'iothreads:uinteger' \ 'iothreads:uinteger' \
'portal:list(string)' \ 'portal:list(string)' \
'nop_interval:uinteger' \ 'nop_interval:uinteger' \
'nop_count:uinteger'
'nop_count:uinteger' \
'logging:bool:0'
} }
start_tgt_instance() { start_tgt_instance() {
local fg_flag=-f
[ "$2" = 0 ] || { [ "$2" = 0 ] || {
$logger "Validation failed for tgt options" $logger "Validation failed for tgt options"
return 1 return 1
} }
procd_open_instance 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" [ "$iothreads" ] && procd_append_param command -t "$iothreads"
[ "$portal$nop_interval$nop_count" ] && { [ "$portal$nop_interval$nop_count" ] && {
local iscsi="" i local iscsi="" i


Loading…
Cancel
Save