Messages in this thread | | | Subject | [Question] mount points on knfsd. | Date | Wed, 09 Sep 1998 14:55:18 -0700 | From | "G. Allen Morris III" <> |
| |
I would like some feed back on the best way to solve what I hope is one of the last major problems in the fs/nfsd code in the kernel.
The NFS RFC is clear that nfsd should not cross a mount point.
A server will not allow a LOOKUP operation to cross a mount-point to the root of a different file-system, even if the file-system is exported.
But it is not clear what it should do. The problem with what nfsd does now is that it returns an EACCESS (-13) error when you LOOKUP the mount point, and mount with not let you mount onto that directory.
There seem to be several possible solutions:
1) return the underlying directory. This should be easy; you can use dchild->d_covers in fs/nfsd/vfs.c line 176.
2) return a different error or patch mount so that it will allow the mount.
3) return some kind of `fake' file handle.
4) ...
Any ideas on the best way to deal with this will be appreciated.
Allen
--------------------------------- G. Allen Morris III
- 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/faq.html
| |