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
This commit is contained in:
parent
92ed3d6edd
commit
24ffc64926
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=319610
@ -252,6 +252,10 @@ sesled(int argc, char **argv, bool setfault)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
for (j = 0; j < nobj; j++) {
|
for (j = 0; j < nobj; j++) {
|
||||||
|
if (all) {
|
||||||
|
do_led(fd, objp[j].elm_idx, onoff, setfault);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
memset(&objdn, 0, sizeof(objdn));
|
memset(&objdn, 0, sizeof(objdn));
|
||||||
objdn.elm_idx = objp[j].elm_idx;
|
objdn.elm_idx = objp[j].elm_idx;
|
||||||
objdn.elm_names_size = 128;
|
objdn.elm_names_size = 128;
|
||||||
@ -265,11 +269,6 @@ sesled(int argc, char **argv, bool setfault)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (objdn.elm_names_len > 0) {
|
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)) {
|
if (disk_match(objdn.elm_devnames, disk, len)) {
|
||||||
do_led(fd, objdn.elm_idx,
|
do_led(fd, objdn.elm_idx,
|
||||||
onoff, setfault);
|
onoff, setfault);
|
||||||
|
Loading…
Reference in New Issue
Block a user