Bug 138421 - [ufs] [patch] remove UFS label limitations
Summary: [ufs] [patch] remove UFS label limitations
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
Depends on:
Reported: 2009-08-31 20:40 UTC by Rick C. Petty
Modified: 2017-12-31 22:35 UTC (History)
0 users

See Also:

file.diff (2.73 KB, patch)
2009-08-31 20:40 UTC, Rick C. Petty
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rick C. Petty 2009-08-31 20:40:06 UTC
UFS filesystems allow label/volume names containing alphanumeric
characters only.  There is a need for at least one separator character.

This request and patches were submitted to freebsd-fs@ and freebsd-
current@ but no one on those lists seems to be willing to commit this
innocuous patch.  I've been using a patched system for well over a year
on a number of systems.

Fix: One of the following patches, to allow acceptable POSIX filename
characters as part of UFS labels.

The first manually tests against the acceptable characters, which
should be faster.  This second patch is using strspn(3) as suggested
by des@ in case the first patch is not acceptable.  It is slower but
we are likely going to do I/O anyway.  I don't care which patch you
choose, just please someone commit the damn thing! =)

Patch attached with submission follows:
How-To-Repeat: /sbin/newfs -L volume-name ...


/sbin/tunefs -L volume-name ...
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2009-09-01 06:02:51 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:58 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped