History log of /freebsd/usr.sbin/sesutil/sesutil.c (Results 1 – 25 of 54)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 3d1b233e 12-Oct-2024 Yan-Hao Wang <yanhaowang@FreeBSD.org>

sesutil(8): Complete libxo transition

Reviewed by: des
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D41418


# 7d893fce 06-Oct-2024 Jeremy Faulkner <gldisater@gmail.com>

sesutil: Fix a typo in an error message

PR: 281658
MFC after: 1 week


Revision tags: release/13.4.0, release/14.1.0, release/13.3.0, release/14.0.0
# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


Revision tags: release/13.2.0
# 57dc6f5e 10-Mar-2023 Alan Somers <asomers@FreeBSD.org>

sesutil: fix "fault all" with zoned jbods

Some SAS JBODs support zoning. This feature allows individual SAS
targets to be accessible by only some initiator ports. One application
would be connecti

sesutil: fix "fault all" with zoned jbods

Some SAS JBODs support zoning. This feature allows individual SAS
targets to be accessible by only some initiator ports. One application
would be connecting two servers to the same JBOD, but they wouldn't be
able to see each other's disks.

A zoned JBOD should also prohibit initiators from accessing SES elements
corresponding to inaccessible SAS targets. It reports that by setting
the element's status code to 0x8 (No Access Allowed).

The bug is that when doing "sesutil (fault|locate) all ...", sesutil
will attempt a ENCIOC_SETELMSTAT ioctl for every single element, even
the inaccessible ones. The enclosure will reject the command, the
kernel will return EINVAL, and sesutil will exit.

The solution is to check the element's status, and skip trying to set it
if the status is 0x8. But if the user actually supplied a ses ID, then
assume that he knows what he's doing and try to set it anyway.

PR: 270093
MFC after: 1 week
Sponsored by: Axcient
Reviewed by: mav, trasz
Differential Revision: https://reviews.freebsd.org/D39017

show more ...


# 4bd4e4b4 09-Feb-2023 Alan Somers <asomers@FreeBSD.org>

sesutil: don't malloc in a tight loop

Reported by: mav
MFC after: 1 week
Sponsored by: Axcient
Reviwed by: mav
Differential Revision: https://reviews.freebsd.org/D38473


Revision tags: release/12.4.0, release/13.1.0
# 09f29b03 19-Jan-2022 Alan Somers <asomers@FreeBSD.org>

sesutil: plug memory leaks

MFC after: 1 week
Sponsored by: Axcient
Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D33955


Revision tags: release/12.3.0
# eea7c615 27-Aug-2021 Alan Somers <asomers@FreeBSD.org>

Add tests for ses(4)

The tests require SES hardware. Without it, the test cases will be
skipped.

Reviewed by: ken
Differential Revision: https://reviews.freebsd.org/D31809
Sponsored by: Axcient
MF

Add tests for ses(4)

The tests require SES hardware. Without it, the test cases will be
skipped.

Reviewed by: ken
Differential Revision: https://reviews.freebsd.org/D31809
Sponsored by: Axcient
MFC after: 2 weeks

show more ...


# 18acbeb3 31-Aug-2021 Alan Somers <asomers@FreeBSD.org>

sesutil: fix a comment

MFC after: 2 weeks
Sponsored by: Axcient


# 2e19fae4 13-Jan-2022 Alexander Motin <mav@FreeBSD.org>

sesutil: Avoid setting reserved bits.

Weird side of SES specification is that some bits have different
meaning or semantics in status and control pages. This patch fixes
non-zero writes into reserv

sesutil: Avoid setting reserved bits.

Weird side of SES specification is that some bits have different
meaning or semantics in status and control pages. This patch fixes
non-zero writes into reserved fields, that caused errors on some
enclosures when trying to control locate/fault LEDs, keeping other
bits unchanged.

MFC after: 2 weeks
Sposonred by: iXsystems, Inc.

show more ...


# 79f38143 02-Jan-2022 Poul-Henning Kamp <phk@FreeBSD.org>

sesutil: Widen "Desc" field to fit "Drive Slot 23"


# a1571967 21-Jul-2021 Edward Tomasz Napierala <trasz@FreeBSD.org>

sesutil: Fix status checking

Previously we would display "OK, Swapped" for swapped disks,
instead of the usual disk size.

Reviewed By: allanjude
Differential Revision: https://reviews.freebsd.org/D

sesutil: Fix status checking

Previously we would display "OK, Swapped" for swapped disks,
instead of the usual disk size.

Reviewed By: allanjude
Differential Revision: https://reviews.freebsd.org/D31219

show more ...


Revision tags: release/13.0.0, release/12.2.0
# 3d10bf72 30-Jun-2020 Edward Tomasz Napierala <trasz@FreeBSD.org>

Fix misplaced voltages/temperatures labels in 'sesutil show'.

PR: bin/247384
Reported by: brd
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D25353


Revision tags: release/11.4.0
# 74dc6beb 14-Feb-2020 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r357855 through r357920.


# f05cc0f1 13-Feb-2020 Alan Somers <asomers@FreeBSD.org>

sesutil: fix Coverity CIDs

* 1411604: file descriptor leak
* 1411586: memory leaks, null dereference on ENOMEM

Reported by: Coverity Scan
Coverity CIDs: 1411604, 1411586
Reviewed by: trasz
MFC afte

sesutil: fix Coverity CIDs

* 1411604: file descriptor leak
* 1411586: memory leaks, null dereference on ENOMEM

Reported by: Coverity Scan
Coverity CIDs: 1411604, 1411586
Reviewed by: trasz
MFC after: 2 weeks
Sponsored by: Axcient
Differential Revision: https://reviews.freebsd.org/D23651

show more ...


# 8ad16e55 14-Dec-2019 Edward Tomasz Napierala <trasz@FreeBSD.org>

Add 'sesutil show' subcommand to show enclosure and its contents
in a user-friendly way.

Reviewed by: allanjude, bcr (manpages)
MFC after: 2 weeks
Relnotes: yes
Sponsored by: Klara Inc.
Differential

Add 'sesutil show' subcommand to show enclosure and its contents
in a user-friendly way.

Reviewed by: allanjude, bcr (manpages)
MFC after: 2 weeks
Relnotes: yes
Sponsored by: Klara Inc.
Differential Revision: https://reviews.freebsd.org/D22567

show more ...


# 9f96f106 13-Nov-2019 Alan Somers <asomers@FreeBSD.org>

sesutil: fix another memory leak

Instead of calloc()ing (and forgetting to free) in a tight loop, just put
this small array on the stack.

Reported by: Coverity
Coverity CID: 1331665
MFC after: 2 we

sesutil: fix another memory leak

Instead of calloc()ing (and forgetting to free) in a tight loop, just put
this small array on the stack.

Reported by: Coverity
Coverity CID: 1331665
MFC after: 2 weeks
Sponsored by: Axcient

show more ...


# a221b104 13-Nov-2019 Alan Somers <asomers@FreeBSD.org>

sesutil: fix some memory leaks

Reported by: Coverity
Coverity CID: 1331665
MFC after: 2 weeks
Sponsored by: Axcient


# 691a834c 13-Nov-2019 Alan Somers <asomers@FreeBSD.org>

sesutil: fix an out-of-bounds array access

sesutil would allow the user to toggle an LED that was one past the maximum
element. If he tried, ENCIOC_GETELMSTAT would return EINVAL.

Reported by: Cov

sesutil: fix an out-of-bounds array access

sesutil would allow the user to toggle an LED that was one past the maximum
element. If he tried, ENCIOC_GETELMSTAT would return EINVAL.

Reported by: Coverity
Coverity CID: 1398940
MFC after: 2 weeks
Sponsored by: Axcient

show more ...


Revision tags: release/12.1.0, release/11.3.0
# 8e69ae1c 05-Feb-2019 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r343712 through r343806.


# fe74eaab 04-Feb-2019 Alexander Motin <mav@FreeBSD.org>

Check element type before setting LEDs.

With r319610, sesutil started twiddling the bits of every SES device.
Not everything is a disk slot, there are also fan controllers, temperature
sensors, even

Check element type before setting LEDs.

With r319610, sesutil started twiddling the bits of every SES device.
Not everything is a disk slot, there are also fan controllers, temperature
sensors, even power supplies, among other things controlled by SES.

Add a type check to make sure we are only operating on device slot and array
device slot elements. Other type elements will be skipped, but it would be
simple to add additional cases for controlling the ident LEDs of other
element types (which are not necessarily the same bits).

Rather than doing raw bit manipulation of an unstructured byte array using
unnamed numeric constants, leverage existing code abstractions.

Submitted by: Ryan Moeller <ryan@freqlabs.com>
MFC after: 1 week
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D19052

show more ...


Revision tags: release/12.0.0, release/11.2.0, release/10.4.0
# 531c2d7a 24-Jul-2017 Enji Cooper <ngie@FreeBSD.org>

MFhead@r320180


# bca9d05f 23-Jul-2017 Hans Petter Selasky <hselasky@FreeBSD.org>

Merge ^/head r319973 through 321382.


Revision tags: release/11.1.0
# f6e653bb 02-Jul-2017 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r320398 through r320572.


# 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


# a3604b95 27-Jun-2017 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r320042 through r320397.


123