getfsent(3) and spaces in fstab
Tod McQuillin
devin at spamcop.net
Thu Jul 31 19:57:17 PDT 2003
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
More information about the freebsd-hackers
mailing list