[Bug 270093] sesutil fault all ... fails with EINVAL on inaccessible elements

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 10 Mar 2023 17:44:48 UTC

            Bug ID: 270093
           Summary: sesutil fault all ... fails with EINVAL on
                    inaccessible elements
           Product: Base System
           Version: 13.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: asomers@FreeBSD.org

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.

You are receiving this mail because:
You are the assignee for the bug.