Page MenuHomeFreeBSD

D39017.diff
No OneTemporary

D39017.diff

diff --git a/usr.sbin/sesutil/sesutil.c b/usr.sbin/sesutil/sesutil.c
--- a/usr.sbin/sesutil/sesutil.c
+++ b/usr.sbin/sesutil/sesutil.c
@@ -281,6 +281,16 @@
char devnames[devnames_size];
if (all) {
+ encioc_elm_status_t es;
+ memset(&es, 0, sizeof(es));
+ es.elm_idx = objp[j].elm_idx;
+ if (ioctl(fd, ENCIOC_GETELMSTAT, &es) < 0) {
+ close(fd);
+ xo_err(EXIT_FAILURE,
+ "ENCIOC_GETELMSTAT");
+ }
+ if ((es.cstat[0] & 0xf) == SES_OBJSTAT_NOACCESS)
+ continue;
do_led(fd, objp[j].elm_idx, objp[j].elm_type,
onoff, setfault);
continue;

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 11, 6:18 AM (19 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15751030
Default Alt Text
D39017.diff (598 B)

Event Timeline