Find a file
Alan Somers a6506dda73 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
Sponsored by:	Axcient
Reviewed by:	mav, trasz
Differential Revision: https://reviews.freebsd.org/D39017

(cherry picked from commit 57dc6f5e20)
2023-09-06 14:39:35 -06:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2022-02-09 12:39:50 -05:00
.github/workflows .github: Attempt to fix and increase robustness of macOS action 2023-02-22 12:47:12 -08:00
bin sh tests: Update $LINENO tests after $FreeBSD$ removal 2023-08-23 11:45:13 -06:00
cddl Remove $FreeBSD$: two-line nroff pattern 2023-08-23 11:43:31 -06:00
contrib MFC: MFV: less v643. 2023-08-27 22:15:15 -07:00
crypto ssh: comment deprecated option handling for retired local patches 2023-08-08 12:42:01 -04:00
etc syslogd: Add some basic regression tests 2023-08-31 09:55:19 -04:00
gnu Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
include Remove $FreeBSD$: one-line xdr pattern 2023-08-23 11:43:34 -06:00
kerberos5 Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
lib geli: Fix geli setkey -J for detached providers 2023-09-04 08:55:15 -04:00
libexec rc.d/routing: Correct setting default gateway for each FIB 2023-08-30 20:06:51 +08:00
release Remove $FreeBSD$: one-line bare tag 2023-08-23 11:43:33 -06:00
rescue Remove $FreeBSD$: one-line bare tag 2023-08-23 11:43:33 -06:00
sbin pf: expose syncookie active/inactive status 2023-08-28 10:17:17 +02:00
secure libcrypto: Don't embed $FreeBSD$ in generated assembly files 2023-08-23 11:43:35 -06:00
share bridge.4: Document the net.link.bridge.log_mac_flap sysctl variable 2023-09-01 18:08:13 +08:00
stand Remove $FreeBSD$: one-line forth tag 2023-08-23 11:43:34 -06:00
sys tcp: Initialize the maximum number of entries in a client cookie cache bucket 2023-09-06 12:18:29 +08:00
targets Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
tests geli tests: Add a regression test for geli setkey -J 2023-09-04 08:55:17 -04:00
tools Remove $FreeBSD$: one-line lua tag 2023-08-23 11:43:34 -06:00
usr.bin Fix build for FreeBSD 13. 2023-09-03 11:49:02 -07:00
usr.sbin sesutil: fix "fault all" with zoned jbods 2023-09-06 14:39:35 -06:00
.arcconfig
.arclint
.cirrus.yml Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
.clang-format Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
.gitattributes
.gitignore gitignore: whack dead architectures 2023-08-06 21:05:36 +02:00
COPYRIGHT copyrights: Happy New Year 2021 2020-12-31 10:29:44 -05:00
LOCKS Remove $FreeBSD$: one-line bare tag 2023-08-23 11:43:33 -06:00
MAINTAINERS Remove $FreeBSD$: one-line bare tag 2023-08-23 11:43:33 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
Makefile.inc1 Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
Makefile.libcompat Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
Makefile.sys.inc Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
ObsoleteFiles.inc Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
README.md hier(7): remove text describing /usr/src layout 2022-12-05 12:37:07 -04:00
RELNOTES Remove $FreeBSD$: one-line bare tag 2023-08-23 11:43:33 -06:00
UPDATING Remove $FreeBSD$: one-line bare tag 2023-08-23 11:43:33 -06:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING* for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.