From owner-freebsd-geom@FreeBSD.ORG Wed Mar 17 15:46:41 2010 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44642106564A for ; Wed, 17 Mar 2010 15:46:41 +0000 (UTC) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id F3A738FC0A for ; Wed, 17 Mar 2010 15:46:40 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NrvRx-0005yr-2D for freebsd-geom@freebsd.org; Wed, 17 Mar 2010 16:46:25 +0100 Received: from static-78-8-147-77.ssp.dialog.net.pl ([78.8.147.77]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Mar 2010 16:46:25 +0100 Received: from mwisnicki+freebsd by static-78-8-147-77.ssp.dialog.net.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Mar 2010 16:46:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Marcin Wisnicki Date: Wed, 17 Mar 2010 15:46:09 +0000 (UTC) Lines: 26 Message-ID: References: <20100315195059.GA1331@a91-153-117-195.elisa-laajakaista.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: static-78-8-147-77.ssp.dialog.net.pl User-Agent: Pan/0.132 (Waxed in Black) Subject: Re: geom_label and directories under /dev X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Mar 2010 15:46:41 -0000 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