On Wed, Mar 15, 2006 at 02:46:49AM -0800, John Gilmore wrote: > The "showmount -e" command extracts this information. It does it via > an RPC call (via the portmap daemon) to the rpc.mountd daemon. This > is the standard way to find out. I couldn't do it that way.
> The man page for exportfs(8) says that interface is /proc/fs/nfsd (in > new kernels), and indeed that file exists in my system. But it > appears that the kernel sends requests up via that file, and the > daemon responds to them; there may not be a way to list the kernel's I've got that as a directory. But you pointed me in the right(ish) direction. Do you have a /proc/fs/nfs/exports file? > info to "showmount -e", shows that it gets it from /var/lib/nfs/etab. > But that seems like too-heavy reliance on an implementation detail, > particularly for a program like fuser that isn't an intimate part of > the NFS subsystem. Exactly, I couldn't use something in userland because it can be put anywhere and is not reliable. This exports file looks interesting and is the sort of thing I'm after, if it is common. - Craig -- Craig Small GnuPG:1C1B D893 1418 2AF4 45EE 95CB C76C E5AC 12CA DFA5 Eye-Net Consulting http://www.enc.com.au/ MIEE Debian developer csmall at : enc.com.au ieee.org debian.org -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]