Allowing \xxx in fstab
Stefan Farfeleder
stefanf at FreeBSD.org
Sat Oct 6 08:49:45 UTC 2012
Hi,
I want to add support to specify device names containing spaces in
fstab. Filesystem labels often contain spaces and we create
corresponding devices names, e.g., /dev/msdosfs/FOO BAR.
Currently there's no way to mount such devices via fstab.
The standard way of doing that in Linux seems to be to encode the space
with '\040' in fstab, so I followed that approach. There's a patch in PR
117687 (http://www.freebsd.org/cgi/query-pr.cgi?pr=117687) that uses
strunvis() but I feel not very confident with the function as it
translates more things than just \xxx.
Comments?
Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fstab-octal-escape-sequence.diff
Type: text/x-diff
Size: 926 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20121006/c812ea22/fstab-octal-escape-sequence.bin
More information about the freebsd-arch
mailing list