Date: Sat, 10 Mar 2018 14:33:00 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r330741 - head/usr.bin/iscsictl Message-ID: <201803101433.w2AEX0sa045790@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Sat Mar 10 14:33:00 2018 New Revision: 330741 URL: https://svnweb.freebsd.org/changeset/base/330741 Log: Make iscsictl(1) display "Disabled" status for disabled sessions. MFC after: 2 weeks Modified: head/usr.bin/iscsictl/iscsictl.c Modified: head/usr.bin/iscsictl/iscsictl.c ============================================================================== --- head/usr.bin/iscsictl/iscsictl.c Sat Mar 10 14:21:37 2018 (r330740) +++ head/usr.bin/iscsictl/iscsictl.c Sat Mar 10 14:33:00 2018 (r330741) @@ -605,7 +605,8 @@ kernel_list(int iscsi_fd, const struct target *targ __ 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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803101433.w2AEX0sa045790>