Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jul 2014 23:54:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 192050] New: [zfs] The allowed character set for ZFS dataset names is very limited
Message-ID:  <bug-192050-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D192050

            Bug ID: 192050
           Summary: [zfs] The allowed character set for ZFS dataset names
                    is very limited
           Product: Base System
           Version: 10.0-RELEASE
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: aberg010@my.hennepintech.edu

While there are very few limitations on directory names, ZFS dataset names =
seem
to support only alphanumeric characters and the space character. This is
extremely annoying when trying to create the occasional dataset where the
intended directory name has a punctuation mark such as an exclamation point=
. It
also does not seem to support non-ASCII characters either. With the excepti=
on
of @, I cannot see why a ZFS dataset name cannot support any character that=
 is
allowed in a directory name.
With this limitation, there are two workarounds: limit directory names to t=
he
character set allowed in dataset names, or create different dataset names a=
nd
explicitly set the mountpoint to have the correct name of the directory. The
former is kind of absurd, but more or less manageable, depending on how bad=
ly
you want/need the directory name to be correct. The latter creates the need=
 for
more complicated scripts and workflows, and extra permissions are needed for
creating and mounting datasets with explicitly set mountpoints.


# zfs create storage/=E6=96=87=E5=AD=97=E5=8C=96=E3=81=91
cannot create 'storage/=E6=96=87=E5=AD=97=E5=8C=96=E3=81=91': invalid chara=
cter ' in name
# zfs create storage/touch=C3=A9
cannot create 'storage/touch=C3=A9': invalid character ' in name
# zfs create "storage/Here Today, Gone Tomorrow"
cannot create 'storage/Here Today, Gone Tomorrow': invalid character ',' in
name
# zfs create "storage/Why?"
cannot create 'storage/Why?': invalid character '?' in name


I am quite curious why such a limitation exists. I would also like to know =
if
this is a limitation of ZFS as a whole or just zfs(8) in particular.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192050-8>