diff options
author | trasz <trasz@FreeBSD.org> | 2018-04-16 17:22:09 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2018-04-16 17:22:09 +0000 |
commit | 419d5df35fb0d0ce332fe47950aaae2659aaded0 (patch) | |
tree | dfb5f1c5633af27d814898f6a0e782783dd29245 /usr.bin | |
parent | efe304c3ff63071b46120c63e168ba018dd0ec68 (diff) | |
download | FreeBSD-src-419d5df35fb0d0ce332fe47950aaae2659aaded0.zip FreeBSD-src-419d5df35fb0d0ce332fe47950aaae2659aaded0.tar.gz |
MFC r330741:
Make iscsictl(1) display "Disabled" status for disabled sessions.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/iscsictl/iscsictl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/iscsictl/iscsictl.c b/usr.bin/iscsictl/iscsictl.c index e71ba90..9bf2fcc 100644 --- a/usr.bin/iscsictl/iscsictl.c +++ b/usr.bin/iscsictl/iscsictl.c @@ -601,7 +601,8 @@ kernel_list(int iscsi_fd, const struct target *targ __unused, xo_emit("{V:name/%-36s/%s} {V:portal/%-16s/%s} ", 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); } else { if (conf->isc_discovery) { |