Bug 138421

Summary: [ufs] [patch] remove UFS label limitations
Product: Base System Reporter: Rick C. Petty <rick-freebsd2008>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me Keywords: patch
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

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 ...

-or-

/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

reclassify.
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
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:39:18 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>