UFS label limitations
Rick C. Petty
rick-freebsd2008 at kiwi-computer.com
Tue Dec 16 12:10:48 PST 2008
On Tue, Dec 16, 2008 at 02:29:52PM +0100, Dag-Erling Smørgrav wrote:
> "Rick C. Petty" <rick-freebsd2008 at kiwi-computer.com> writes:
> > Dag-Erling Smørgrav <des at des.no> writes:
> > > Stick to the POSIX portable file name character set: [A-Za-z0-9._-]
> > Good idea. It gives me the separators I need. Would a committer be
> > willing to review and commit the attached (inline) patch?
>
> Take a look at strspn(3).
You think it's better to use strspn than a couple range checks? I would
have thought the character lookup with strspn would be slower and more
ghastly to look at.
-- Rick C. Petty
More information about the freebsd-fs
mailing list