![]() | |||||||||||||
Messages in this thread |
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/ | ||||||||||||
| Last update: 2005-03-22 13:45 [from the cache] ©2003-2008 | |||||||||||||