svn commit: r319610 - head/usr.sbin/sesutil
Allan Jude
allanjude at FreeBSD.org
Tue Jun 6 02:03:23 UTC 2017
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);
More information about the svn-src-head
mailing list