|
|
@ -14,7 +14,7 @@ logger="logger -p daemon.err -s -t $NAME" |
|
|
|
|
|
|
|
validate_lun_section() { |
|
|
|
uci_validate_section tgt lun $1 \ |
|
|
|
'device:file' \ |
|
|
|
'device:or("file", "device")' \ |
|
|
|
'type:or("disk", "cd", "pt"):disk' \ |
|
|
|
'bstype:or("rdwr", "aio", "sg"):rdwr' \ |
|
|
|
'sync:bool:0' \ |
|
|
@ -227,6 +227,11 @@ stop_service() { |
|
|
|
$tgtadm --mode sys --op delete |
|
|
|
} |
|
|
|
|
|
|
|
reload_service() { |
|
|
|
stop_service |
|
|
|
start_service |
|
|
|
} |
|
|
|
|
|
|
|
show() { |
|
|
|
$tgtadm --mode target --op show |
|
|
|
} |