From owner-freebsd-bugs@FreeBSD.ORG Tue Jul 22 23:54:26 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2AC777AA for ; Tue, 22 Jul 2014 23:54:26 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EC15A260C for ; Tue, 22 Jul 2014 23:54:25 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.8/8.14.8) with ESMTP id s6MNsPDg095926 for ; Tue, 22 Jul 2014 23:54:25 GMT (envelope-from bugzilla-noreply@freebsd.org) 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 Date: Tue, 22 Jul 2014 23:54:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: aberg010@my.hennepintech.edu X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2014 23:54:26 -0000 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.=