svn commit: r319901 - stable/11/usr.sbin/sesutil
Allan Jude
allanjude at FreeBSD.org
Tue Jun 13 15:23:50 UTC 2017
Author: allanjude
Date: Tue Jun 13 15:23:49 2017
New Revision: 319901
URL: https://svnweb.freebsd.org/changeset/base/319901
Log:
MFC r319610:
usr.sbin/sesutil: correct 'locate all off' to deactivate empty slot LEDs
PR: 217409
Approved by: re (marius)
Modified:
stable/11/usr.sbin/sesutil/sesutil.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.sbin/sesutil/sesutil.c
==============================================================================
--- stable/11/usr.sbin/sesutil/sesutil.c Tue Jun 13 14:57:48 2017 (r319900)
+++ stable/11/usr.sbin/sesutil/sesutil.c Tue Jun 13 15:23:49 2017 (r319901)
@@ -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);
More information about the svn-src-all
mailing list