Page MenuHomeFreeBSD

Remove spaces from CTL devices' default serial numbers
ClosedPublic

Authored by asomers on Sep 6 2017, 9:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 16, 2:34 AM
Unknown Object (File)
Mon, Oct 6, 4:14 PM
Unknown Object (File)
Sep 21 2025, 9:22 PM
Unknown Object (File)
Sep 17 2025, 2:10 PM
Unknown Object (File)
Sep 12 2025, 9:39 PM
Unknown Object (File)
Aug 31 2025, 4:33 PM
Unknown Object (File)
Aug 13 2025, 8:29 AM
Unknown Object (File)
Jul 15 2025, 12:13 AM
Subscribers

Details

Summary

Remove spaces from CTL devices' default serial numbers

It's awkward to have spaces in CAM device serial numbers. That leads to
such things as device nodes named "/dev/diskid/MYSERIAL%20%20%201". Better
to replace the spaces with "0"s. This change only affects the default
serial numbers for users who don't provide their own.

Diff Detail

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

Event Timeline

Looks good to me, thanks!

This revision is now accepted and ready to land.Sep 7 2017, 8:22 PM

I have no objections against the change. Though the whole concept of using so simple and repeatable LUN IDs is a request for troubles caused by conflicts.

This revision was automatically updated to reflect the committed changes.