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
F154286430: D12263.id32750.diff
Mon, Apr 27, 2:59 PM
Unknown Object (File)
Fri, Apr 17, 9:34 AM
Unknown Object (File)
Thu, Apr 16, 5:45 AM
Unknown Object (File)
Mon, Apr 13, 11:26 PM
Unknown Object (File)
Mar 27 2026, 11:08 AM
Unknown Object (File)
Mar 27 2026, 10:32 AM
Unknown Object (File)
Mar 26 2026, 1:36 AM
Unknown Object (File)
Mar 14 2026, 6:31 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 Not Applicable
Unit
Tests Not Applicable

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.