]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC: r241568
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 1 Dec 2012 01:11:59 +0000 (01:11 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 1 Dec 2012 01:11:59 +0000 (01:11 +0000)
commitc2956233799bb3ea78dda4df2472f52fb79b626f
treec2d1df60d88e6fbab3114911242032a8c8f6c643
parent77e3549f879d69d1118e323500c2cbc57a0d9288
MFC: r241568
Add a new '-S' option to mountd, which tells it to suspend
execution of the nfsd threads while it is reloading the exports.
This avoids clients from getting intermittent access errors
when the exports are being reloaded non-atomically.
It is not an ideal solution, since requests will back up while
the nfsd threads are suspended. Also, when this option is used,
if mountd crashes while reloading exports, mountd will have to
be restarted to get the nfsd threads to resume execution.
This has been tested by Vincent Hoffman (vince at unsane.co.uk)
and John Hickey (jh at deterlab.net).
The nfse patch offers a more comprehensive solution for this issue.

git-svn-id: svn://svn.freebsd.org/base/stable/9@243739 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/mountd/mountd.c