geom_label and directories under /dev
Marcin Wisnicki
mwisnicki+freebsd at gmail.com
Wed Mar 17 15:46:41 UTC 2010
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
More information about the freebsd-geom
mailing list