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
F137323120: D32684.id98078.diff
Sat, Nov 22, 11:27 AM
Unknown Object (File)
Thu, Nov 20, 8:58 PM
Unknown Object (File)
Mon, Nov 17, 10:00 PM
Unknown Object (File)
Sun, Nov 9, 9:50 PM
Unknown Object (File)
Mon, Nov 3, 6:19 PM
Unknown Object (File)
Sun, Oct 26, 11:59 AM
Unknown Object (File)
Sat, Oct 25, 12:56 AM
Unknown Object (File)
Oct 13 2025, 6:06 AM
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