Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Aug 2003 11:57:13 +0900 (JST)
From:      Tod McQuillin <devin@spamcop.net>
To:        chris@behanna.org
Cc:        FreeBSD-Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: getfsent(3) and spaces in fstab
Message-ID:  <20030801115526.U4264@glass.pun-pun.prv>
In-Reply-To: <20030731221450.A75410@topperwein.pennasoft.com>
References:  <20030730224505.GD531@zi025.glhnet.mhn.de> <1059607242.64020.5.camel@mjtdev1.dand06.au.bytecraft.au.com> <1059608748.64020.10.camel@mjtdev1.dand06.au.bytecraft.au.com> <20030731221450.A75410@topperwein.pennasoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 31 Jul 2003, Chris BeHanna wrote:

>     What about
>
>     test%201    /mnt/test%201   ufs     ro      0       0
>
> ?
> Ugly, yes, but that's how a lot of tools escape spaces.

Just FYI, here is how Linux handles this (from fstab(5)):

 The second field, (fs_file), describes the mount point for the filesys-
 tem.  For swap partitions, this field should be specified as `none'. If
 the  name  of  the  mount point contains spaces these can be escaped as
 `\040'.

It might be a good idea to use this method rather than inventing a new
one.
-- 
Tod McQuillin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030801115526.U4264>