From owner-freebsd-bugs@FreeBSD.ORG Tue Aug 17 12:50:03 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 477D81065672 for ; Tue, 17 Aug 2010 12:50:03 +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 1C2AD8FC21 for ; Tue, 17 Aug 2010 12:50:03 +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 o7HCo2AW011113 for ; Tue, 17 Aug 2010 12:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7HCo2iP011112; Tue, 17 Aug 2010 12:50:02 GMT (envelope-from gnats) Date: Tue, 17 Aug 2010 12:50:02 GMT Message-Id: <201008171250.o7HCo2iP011112@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Oliver Fromme Cc: Subject: Re: bin/149424: fstab and labels with whitespace X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Oliver Fromme List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2010 12:50:03 -0000 The following reply was made to PR conf/149424; it has been noted by GNATS. From: Oliver Fromme To: freebsd-bugs@FreeBSD.ORG, bug-followup@FreeBSD.ORG, walter@pelissero.de Cc: Subject: Re: bin/149424: fstab and labels with whitespace Date: Tue, 17 Aug 2010 14:47:46 +0200 (CEST) Walter C. Pelissero wrote: > > Number: 149424 > > Category: bin > > Synopsis: fstab and labels with whitespace > [...] > > Description: > /etc/fstab currently doesn't allow for whitespace anywhere but > between fields (or in comments). This makes impossible to use > a label in place of a device name when mounting volumes > containing whitespace in the name. Take for instance CF or SD > memory cards created by Nikon cameras: they are labelled > "NIKON ", with a whitespace between NIKON and the model > name. Although it's still possible to mount the /dev/da* > device, the label is arguably much more convenient. > > How-To-Repeat: > > > Fix: > > The following patch modifies libc to allow for special > characters in the first field of a fstab entry. A single > space can be written as \s, as in NIKON\sD300S, or \040, as in > NIKON\040D300S. Indeed, any octal escape sequence can be > used, or sequences such as \t, \r, or \n. The problem with this patch is that it breaks backwards- compatibility. Some people might already use backslashes in /etc/fstab, for whatever reason. This change would make them rather unhappy, I'm afraid. One way to circumvent the problem would be to use glabel(8) which should also work with memory cards that contain FAT file systems. You just have to make sure that you don't format the card with the camera -- If you accidentally do that, you need to recreate the label. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd I suggested holding a "Python Object Oriented Programming Seminar", but the acronym was unpopular. -- Joseph Strout