Date: Wed, 17 Mar 2010 15:46:09 +0000 (UTC) From: Marcin Wisnicki <mwisnicki+freebsd@gmail.com> To: freebsd-geom@freebsd.org Subject: Re: geom_label and directories under /dev Message-ID: <hnqtg1$1mv$1@dough.gmane.org> References: <20100315195059.GA1331@a91-153-117-195.elisa-laajakaista.fi>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 15 Mar 2010 21:51:00 +0200, Jaakko Heinonen wrote: > Hi, > > I was working to fix problems with GEOM label class allowing some > problematic label names which can't represent proper files under /dev. > For example: > > - empty label > - "." and ".." > - labels starting or ending with '/' > - labels ending with /.. (Due to a bug for example /..foo/.. is > allowed.) > > So it's probably a dead end to try to suggest disallowing of '/'? > Unfortunately it's not easy to fix all problems with directories. For > starters devfs doesn't support removal of directories at all. > > Opinions? How about using URL encoding scheme[1] for dev names ? That way you will be able to unambigously preserve all characters. The algorithm is very easy, predictable and almost anyone using www is already familiar with it. [1] http://en.wikipedia.org/wiki/Percent-encoding
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?hnqtg1$1mv$1>