NFS export with space in directory name

Mickaël Canévet mickael.canevet at gmail.com
Wed Nov 7 10:52:02 UTC 2012


Hello,

I'm trying to export a ZFS volume that contains a space (which is allowed
according to
/usr/src/sys/cddl/contrib/opensolaris/common/zfs/zfs_namecheck.c, function
valid_char() ), but I noticed that it was not exported (showmount -e).

/etc/zfs/export creates an entry like this:

/data/my directory with space -network 192.168.0.0/24

I tried to do it manually by escaping space character in /etc/exports:

/data/my\ directory\ with\ space -network 192.168.0.0/24

or

"/data/my directory with space" -network 192.168.0.0/24 (works on Debian)

or

'/data/my directory with space' -network 192.168.0.0/24

But it does not work ; /var/log/messages always reports "mountd: bad
exports list line..."

So I'd like to know if there is a way to export a directory with a space in
its name on FreeBSD 9.0-RELEASE ?

Thank you,
Mickaël


More information about the freebsd-fs mailing list