[RFC] mountd(8) patch to prevent flag removal
rink at FreeBSD.org
Mon Oct 2 00:46:42 PDT 2006
At work, we recently moved our local webserver storage (which was plain UFS
along with the SUIDDIR mount option) to a separate NFS server. However, upon
NFS-exporting the filesystem from the NFS server (where it was mounted using -o
suiddir as well), this flag would vanish.
It turns out that this is due to a refactoring in mountd(8). I initially mailed
Craig Rodrigues about this, who did the refactoring, but I haven't received any
The problem is introduced in usr.sbin/mountd/mountd.c revision 184.108.40.206;
it uses nmount(2) with a flags argument of 0 to remount the filesystem.
Unfortunately, this means any specific mount-flags are removed from the
The patch to fix this is at http://rink.nu/tmp/mountd.c.diff; which I'd like
to commit to -HEAD and MFC later on. Would anyone be so kind to review this?
Rink P.W. Springer - http://rink.nu
"When will the internet move from 64Kb max .com domains to .exe
domains which can use much more memory?" - Edwin Groothuis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20061002/044ffbb2/attachment.pgp
More information about the freebsd-arch