History log of /freebsd-current/usr.sbin/sesutil/eltsub.c
Revision Date Author Comments
# 2a63c3be 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c comment pattern

Remove /^/[*/]\s*\$FreeBSD\$.*\n/


# 2b2710a7 27-Nov-2019 Edward Tomasz Napierala <trasz@FreeBSD.org>

Fix typos.

MFC after: 2 weeks
Sponsored by: Klara, Inc


# d25c1ff6 29-Jun-2017 Baptiste Daroussin <bapt@FreeBSD.org>

Add libxo(3) support to sesutil(8)

This is useful to simplify parsing "sesutil map"

Submitted by: nikita.kozlov@blade-group.com
MFC after: 3 weeks
Relnotes: yes
Sponsored by: blade


# 20a957e3 23-Jun-2017 Baptiste Daroussin <bapt@FreeBSD.org>

Directly print the extra status instead of filling a buffer
then printing it.

This prepares the code to make it libxo friendly

Reviewed by: manu, Nikita Kozlov (nikita elyzion.net)
MFC after: 2 weeks
Sponsored by: Gandi.net


# b5566692 23-Jun-2017 Baptiste Daroussin <bapt@FreeBSD.org>

Do not use sprintf(3) when not needed, while here,
prefer snprintf(3) over sprintf(3)


# 1427ff7d 25-Mar-2016 Baptiste Daroussin <bapt@FreeBSD.org>

Cleanup headers

Found by: include-what-you-use


# d7654478 11-Dec-2015 Baptiste Daroussin <bapt@FreeBSD.org>

sesutil: Add extra information specific to some SES devices to sesutil map

Rework stat2ascii preparing a buffer of what could be printed. This prevent the
risk of overflowing a static buffer.

Do not print those informations anymore in the "status" but into a new
"extra status" only printed if there are actually extra things to print.

Now add those extra informations:

* Thermal sensor temperature
* Cooling devices speed
* Voltage sensors, current consumption

Tested by: AllanJude
Sponsored by: Gandi.net
Differential Revision: https://reviews.freebsd.org/D4520


# 845614cd 11-Dec-2015 Baptiste Daroussin <bapt@FreeBSD.org>

sesutil: fix map not printing the status of the LED device in an array

Sponsored by: Gandi.net


# 8729f5ec 19-Sep-2015 Allan Jude <allanjude@FreeBSD.org>

Improve and expand sesutil(8)

- Return an error if no matching device is found when the locate command is run
- Enhance the locate command to be able to address drive bays with no disk, or where the SES controller has not made the mapping to the device name
- Added the fault command, similar to locate, but a different SES property. On some of my controllers locate blinks the activity light, others the fault light. The fault command keeps the fault light on constant.
- Improve the usage() output and use it everywhere
- Added the map command, displays all elements connected to each (or the specified) ses(4) controller
- Added the status command, returns the overall status of the ses(4) controller

Reviewed by: wblock (man page, earlier version)
Approved by: bapt (mentor)
MFC after: 3 weeks
Relnotes: yes
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D3580