Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Apr 2018 17:22:09 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r332620 - stable/11/usr.bin/iscsictl
Message-ID:  <201804161722.w3GHM9GJ028563@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Mon Apr 16 17:22:09 2018
New Revision: 332620
URL: https://svnweb.freebsd.org/changeset/base/332620

Log:
  MFC r330741:
  
  Make iscsictl(1) display "Disabled" status for disabled sessions.

Modified:
  stable/11/usr.bin/iscsictl/iscsictl.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.bin/iscsictl/iscsictl.c
==============================================================================
--- stable/11/usr.bin/iscsictl/iscsictl.c	Mon Apr 16 17:21:26 2018	(r332619)
+++ stable/11/usr.bin/iscsictl/iscsictl.c	Mon Apr 16 17:22:09 2018	(r332620)
@@ -601,7 +601,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?201804161722.w3GHM9GJ028563>