Page MenuHomeFreeBSD

cam: Remove trailing spaces from serial numbers too
ClosedPublic

Authored by imp on Oct 27 2021, 5:47 AM.
Tags
None
Referenced Files
F109463048: D32684.diff
Wed, Feb 5, 9:45 AM
Unknown Object (File)
Jan 3 2025, 6:56 AM
Unknown Object (File)
Dec 29 2024, 6:48 PM
Unknown Object (File)
Dec 21 2024, 6:18 AM
Unknown Object (File)
Nov 13 2024, 7:06 PM
Unknown Object (File)
Nov 11 2024, 10:59 PM
Unknown Object (File)
Nov 11 2024, 10:34 PM
Unknown Object (File)
Sep 19 2024, 5:15 PM
Subscribers
None

Details

Summary

The SanDisk SD8SB8U1 and likely others pads its spaces on the end rather
than the start of their serial numbers (at least when connected to a
SAS3008). This makes them difficult to wire unit numbers to with the
serial because you have to specify the trailing spaces.

We already strip leading spaces both here and when we create the devfs
names in glabel, so dev node names won't chanage because of this.

Sponsored by: Netflix

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 42396
Build 39284: arc lint + arc unit