mountd: clean up rmtab handling
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 16 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | mountd: remove bogus mountlist_add/del calls, track only v2/3 mountsutils/ utils/ | +9 | 3 replies | |
| 2/2 | mountd: clean up hostname handling when authenticating clientssupport/ support/ utils/ +1 more | +19 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] mountd: clean up rmtab handling
We have had a few reports from customers that showmount -a is just plain broken. The manpage says that it should "List both the client hostname and mounted directory in host:dir format". Instead, when used with recent kernels, the output can look something like this (after mounts from several hosts):
*:/foo
*:/scratch
*,foo.bar.baz:/scratch
10.10.1.41:*
172.16.33.192:*
172.16.33.192:*,foo.bar.baz
The output here varies somewhat depending on how the export table on the server is configured, but the key is that we're getting multiple lines here for every mount (some that don't even contain a path), and the hostname field is often not a hostname or IP address.
The problem seems to be in how the rmtab is being managed and in how mountd handles the hostname of the client when checking permissions and such.
The following two patches remedy this. They both should only affect the case where new_cache is set.
-- Jeff
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs