From owner-freebsd-geom@FreeBSD.ORG Sat Aug 21 09:10:04 2010 Return-Path: Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7BAC1106566B for ; Sat, 21 Aug 2010 09:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6D7B18FC14 for ; Sat, 21 Aug 2010 09:10:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7L9A3IM069713 for ; Sat, 21 Aug 2010 09:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7L9A3LA069712; Sat, 21 Aug 2010 09:10:03 GMT (envelope-from gnats) Date: Sat, 21 Aug 2010 09:10:03 GMT Message-Id: <201008210910.o7L9A3LA069712@freefall.freebsd.org> To: freebsd-geom@FreeBSD.org From: walter@pelissero.de (Walter C. Pelissero) Cc: Subject: Re: kern/149762: volume labels with rogue characters X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Walter C. Pelissero" List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Aug 2010 09:10:04 -0000 The following reply was made to PR kern/149762; it has been noted by GNATS. From: walter@pelissero.de (Walter C. Pelissero) To: Marcin =?iso-8859-2?Q?Wi=B6nicki?= Cc: bug-followup Subject: Re: kern/149762: volume labels with rogue characters Date: Sat, 21 Aug 2010 01:08:44 +0200 Marcin Wi=B6nicki writes: > How about using "percent encoding": > http://en.wikipedia.org/wiki/Percent-encoding >=20 > It is well known and solves all issues. Which would have the advantage of being one byte more compact than the backslash-octal encoding. sanitise=5Fname performs a simple masking because the pathname built in= g=5Flabel=5Fcreate is limited to 64 chars, which I didn't know whether = it had some special meaning (on a second look, it seems as it didn't), and it looked rather tight for anything more elaborate. --=20 walter pelissero http://www.pelissero.de