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