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)
Sep 19 2024, 5:15 PM
Unknown Object (File)
Sep 19 2024, 3:27 AM
Unknown Object (File)
Sep 18 2024, 10:02 PM
Unknown Object (File)
Sep 18 2024, 12:59 AM
Unknown Object (File)
Sep 17 2024, 5:06 AM
Unknown Object (File)
Sep 15 2024, 6:53 PM
Unknown Object (File)
Sep 13 2024, 10:52 PM
Unknown Object (File)
Sep 10 2024, 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable