Messages in this thread | | | Subject | Re: [Cause found, no patch yet] knfsd: nfs_revalidate_inode fails. | Date | Wed, 18 Nov 1998 00:36:28 +0000 | From | David Woodhouse <> |
| |
gam3@gam3.sehda.com said: > > I am fairly certain that this is a problem in H.J.'s kmountd. When > kmountd get a request to mount /home_1/cjd it should export the > longest path that is a substring of `/home_1/cjd'.
I agree.
> The paths in `/etc/exports', `/var/lib/nfsxtab', and `/proc/fs/nfs' > should all be the same!
Yes, but they're not.
In utils/mountd/auth.c, around line 124, we find the following snippet of code. My annotations ought to be obvious...
/* When we change path for authentication, we need to put the original path back. Otherwise, rmtab will be wrong. */
// To which I say 'Nah, Bollocks'. DW. // strncpy(exp->m_export.m_path, path, // sizeof (exp->m_export.m_path) - 1);
I'm just compiling it as you see it above, to see what happens.
HJ, what was the original reason for doing this? Was it done before we allowed mounting of subdirectories, and just overlooked later, or is there still a reason for doing it?
---- ---- ---- David Woodhouse David.Woodhouse@mvhi.com Office: (+44) 1223 810302 Project Leader, Process Information Systems Mobile: (+44) 976 658355 Axiom (Cambridge) Ltd., Swaffham Bulbeck, Cambridge, CB5 0NA, UK. finger dwmw2@ferret.lmh.ox.ac.uk for PGP key.
- 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/
| |