Re: knfsd

Bill Hawes (
Fri, 21 Nov 1997 18:27:34 -0500

Steven N. Hirsch wrote:
> Though I've had very little time for testing this week, I've noticed one
> consistant problem with knfsd: My exported /usr/src volume on the server
> shows up as "file system busy" on every shutdown - triggering an annoying
> (and lengthy, as the disk is a 4.0GB filesystem) fsck on the next reboot.
> This occurs even when no client has ever mounted the volume! It seems to
> be a function of simply having it exported, and I never experienced this
> with the unfsd.
> Are you seeing this symptom?

Hi Steve,
When you export a volume, the export list holds a dentry to the fs. If
the fs is still exported at shutdown, then it will appear busy (it _is_
busy.) This doesn't cause a fsck on my system, probably because the
shutdown script forces r/o anything that it can't umount.

It's easy to avoid the problem -- just revoke the exports as an early
part of the shutdown.

On another thread we were discussing possible ways to solve this problem
more generally. I'm leaning towards some sort of a registration and
callback at umount time.