Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Jun 2017 02:03:22 +0000 (UTC)
From:      Allan Jude <allanjude@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r319610 - head/usr.sbin/sesutil
Message-ID:  <201706060203.v5623M55031409@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: allanjude
Date: Tue Jun  6 02:03:22 2017
New Revision: 319610
URL: https://svnweb.freebsd.org/changeset/base/319610

Log:
  usr.sbin/sesutil: 'locate all off' does not deactivate empty slots
  
  PR:		217409
  Reported by:	asomers
  Reviewed by:	asomers, bapt
  MFC after:	1 week
  Sponsored by:	ScaleEngine Inc.
  Differential Revision:	https://reviews.freebsd.org/D10458

Modified:
  head/usr.sbin/sesutil/sesutil.c

Modified: head/usr.sbin/sesutil/sesutil.c
==============================================================================
--- head/usr.sbin/sesutil/sesutil.c	Mon Jun  5 20:18:55 2017	(r319609)
+++ head/usr.sbin/sesutil/sesutil.c	Tue Jun  6 02:03:22 2017	(r319610)
@@ -252,6 +252,10 @@ sesled(int argc, char **argv, bool setfault)
 			break;
 		}
 		for (j = 0; j < nobj; j++) {
+			if (all) {
+				do_led(fd, objp[j].elm_idx, onoff, setfault);
+				continue;
+			}
 			memset(&objdn, 0, sizeof(objdn));
 			objdn.elm_idx = objp[j].elm_idx;
 			objdn.elm_names_size = 128;
@@ -265,11 +269,6 @@ sesled(int argc, char **argv, bool setfault)
 				continue;
 			}
 			if (objdn.elm_names_len > 0) {
-				if (all) {
-					do_led(fd, objdn.elm_idx,
-					    onoff, setfault);
-					continue;
-				}
 				if (disk_match(objdn.elm_devnames, disk, len)) {
 					do_led(fd, objdn.elm_idx,
 					    onoff, setfault);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706060203.v5623M55031409>