> > 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?

On my RH 7.3 (kernel 2.4.18) system, yes.  But on my Debian Sarge
(kernel 2.6.11) system, no.  This kind of internal interface change
is the reason to use the standard (RPC-based) interface.  The RPC
interface has been the same since Sun created it in the 1980s for the
first version of NFS.

> ... I couldn't use something in userland because it can be put
> anywhere and is not reliable.  

The published, documented interface is much more reliable than the
undocumented internal interfaces.  Why do you care whether it's in
"userland" or not?  Fuser is in userland, and it's reliable (except
about exported file systems).

> This exports file looks interesting
> and is the sort of thing I'm after, if it is common.

Unfortunately it isn't.

        John


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to