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
Unknown Object (File)
Thu, Sep 19, 5:15 PM
Unknown Object (File)
Thu, Sep 19, 3:27 AM
Unknown Object (File)
Wed, Sep 18, 10:02 PM
Unknown Object (File)
Wed, Sep 18, 12:59 AM
Unknown Object (File)
Tue, Sep 17, 5:06 AM
Unknown Object (File)
Sun, Sep 15, 6:53 PM
Unknown Object (File)
Fri, Sep 13, 10:52 PM
Unknown Object (File)
Tue, Sep 10, 3:54 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