[RFC] /proc/fs/nfsd/exports

G. Allen Morris III (gam3@dharma.sehda.com)
Thu, 29 Oct 1998 12:03:42 -0800


I am adding a proc file to kernel nfsd to display the exports and would
like opions on what its output should look like.

The basic layout is

path client flags IPs

This is simular to the /etc/exports file, with the addition of the IP numbers
that client refers to.

if myhost = 1.0.0.1 and 2.0.0.1
and if the etc/export file contained:

/home myhost(async, ro, root_squash)
/home 2.0.0.1(async, rw, no_root_quash)

/proc/fs/nfsd/exports would have:

/home myhost 15 01000001,-02000001
/home 2.0.0.1 10 02000001

or

/home localhost(async,ro,root_squash) # 1.0.0.1,(2.0.0.1)
/home 2.0.0.1(async) # 2.0.0.1

The `myhost' export has its 2.0.0.1 IP _masked_ by the `2.0.0.1' export.
This is what the `-' or `()'s are trying to signify.

I prefer the first, as it is much easier to implement, and easier to parse.
but the second one is easier to read and would be compatible with exports(5).
Or there might be something better.

Allen

--
Allen Morris <gam3@acm.org>

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/