mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 03:49:02 +00:00
MFC r330741:
Make iscsictl(1) display "Disabled" status for disabled sessions.
This commit is contained in:
parent
893ad340df
commit
215fefb49a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/11/; revision=332620
@ -601,7 +601,8 @@ kernel_list(int iscsi_fd, const struct target *targ __unused,
|
|||||||
xo_emit("{V:name/%-36s/%s} {V:portal/%-16s/%s} ",
|
xo_emit("{V:name/%-36s/%s} {V:portal/%-16s/%s} ",
|
||||||
conf->isc_target, conf->isc_target_addr);
|
conf->isc_target, conf->isc_target_addr);
|
||||||
|
|
||||||
if (state->iss_reason[0] != '\0') {
|
if (state->iss_reason[0] != '\0' &&
|
||||||
|
conf->isc_enable != 0) {
|
||||||
xo_emit("{V:state/%s}\n", state->iss_reason);
|
xo_emit("{V:state/%s}\n", state->iss_reason);
|
||||||
} else {
|
} else {
|
||||||
if (conf->isc_discovery) {
|
if (conf->isc_discovery) {
|
||||||
|
Loading…
Reference in New Issue
Block a user