From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 30 16:20:56 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 050CC37B401 for ; Wed, 30 Jul 2003 16:20:56 -0700 (PDT) Received: from wolf.bytecraft.au.com (wolf.bytecraft.au.com [203.39.118.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 688A843FA3 for ; Wed, 30 Jul 2003 16:20:54 -0700 (PDT) (envelope-from murraytaylor@bytecraftsystems.com) Received: from svmarshal.bytecraft.au.com ([10.0.0.4]) by wolf.bytecraft.au.com (8.12.9/8.12.9) with ESMTP id h6UNKocC014881; Thu, 31 Jul 2003 09:20:50 +1000 (EST) (envelope-from murraytaylor@bytecraftsystems.com) Received: from wombat.bytecraft.au.com (Not Verified[10.0.0.3]) by svmarshal.bytecraft.au.com with MailMarshal (v5,0,3,78) id ; Thu, 31 Jul 2003 09:23:37 +1000 Received: from [10.0.17.42] (mjtdev1.dand06.au.bytecraft.au.com [10.0.17.42]) by wombat.bytecraft.au.com (Postfix) with ESMTP id 39D2D3F0F; Thu, 31 Jul 2003 09:20:43 +1000 (EST) From: Murray Taylor To: Simon Barner In-Reply-To: <20030730224505.GD531@zi025.glhnet.mhn.de> References: <20030730224505.GD531@zi025.glhnet.mhn.de> Content-Type: text/plain Organization: Bytecraft Systems Message-Id: <1059607242.64020.5.camel@mjtdev1.dand06.au.bytecraft.au.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.3 Date: 30 Jul 2003 23:20:43 +0000 Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: Heiner Subject: Re: getfsent(3) and spaces in fstab X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jul 2003 23:20:56 -0000 >From the man page Each filesystem is described on a separate line; fields on each line are separated by tabs or spaces. Clearly, having a space in a filesystem or mount point will violate this constraint, by causing the trailing part to become the next field. Given that this is such a fundamental level in the scheme of things may I suggest that the fstab and mount points maintain the no spaces rule, and allow the higher filesystem (and particularly windoze noddies using SAMBA file shares) to cope with the spaces in filenames stuff.. 0.02c mjt Yes I have a large SAMBA system for the users and Yes a lot of their directories and filenames are 'space laden' .... On Wed, 2003-07-30 at 22:45, Simon Barner wrote: > Hi -hackers, > > discussing some modifications for the sysutils/linneighborhood port, > Heiner Eichmann and me came across the following problem: > > getfsent(3) will fail, if the name of the file system or the mount point > contains whitespaces, be them escaped or not (file system names with > spaces occur quite of with smbfs mounts). > > I searched the mail archives and the PR data base, but apart from this > email here > > http://freebsd.rambler.ru/bsdmail/freebsd-questions_2003/msg05947.html > > this problem seems to be either unknown or rather well-known but > accepted. > > I know there is workaround which is to create symbolic links for the > paths that contain spaces, but to my mind this is not a real solution. > > Before taking any further action: > > Do file system names and mount points with whitespaces violate the > specification of fstab? If so, the least thing I'd suggest is the document > this restriction. > > Or should one extend 'getfsent' such that is able to cope with those > whitespaces? I am not sure whether this would have any further > implications so I am asking here. > > Cheers, > Simon > > ************************************************************************ > This Email has been scanned for Viruses by MailMarshal. > ************************************************************************ -- Murray Taylor Special Projects Engineer --------------------------------- Bytecraft Systems & Entertainment P: +61 3 8710 2555 F: +61 3 8710 2599 D: +61 3 9238 4275 M: +61 417 319 256 E: murraytaylor@bytecraftsystems.com or visit us on the web http://www.bytecraftsystems.com http://www.bytecraftentertainment.com ************************************************************************ This Email has been scanned for Viruses by MailMarshal. ************************************************************************