ZFS sharenfs mangling
Will Andrews
will at firepipe.net
Fri Jul 29 18:32:41 UTC 2011
Hi,
Why do the FreeBSD fsshare compatibility routines mangle the sharenfs
value? As best as I can tell, this behavior only exists so that
people don't have to quote their sharenfs value when setting it via
'zfs set'. However, this feature breaks using hyphens anywhere but in
options.
An user reported this problem last month:
http://lists.freebsd.org/pipermail/freebsd-fs/2011-June/011784.html
Removing translate_opts() (and the call from fsshare_main()) from
cddl/compat/opensolaris/misc/fsshare.c fixed the problem for me, and
had the desired result. The function could be tweaked to fix this
problem, but I think it would be better to simply remove it.
--Will.
More information about the zfs-devel
mailing list