diff options
| author | Trond Myklebust <trond.myklebust@fys.uio.no> | 2002-10-09 22:46:48 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-10-09 22:46:48 -0700 |
| commit | 40a4b2a4836023d76b652f1fd695c1c6d4d63632 (patch) | |
| tree | be15979bbaa26a2da3c77b5617e9f86e624dcc03 /include/linux | |
| parent | 944b2a7cd12c7f7b4146e559faab3351e13e19a3 (diff) | |
[PATCH] A basic NFSv4 client for 2.5.x
This patch changes the interface of the ->readdir() nfs_rpc_op
so that its first argument is a dentry instead of an inode.
[Explanation: The dentry is required because in NFSv4, we need
to make use of the _parent_ directory's inode. This is because
NFSv4 servers no longer return an entry for ".." in the READDIR
response, so the client kernel needs to fake this entry, inode
number and all.]
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/nfs_xdr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index 8d9c04899d65..b27525074317 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h @@ -338,7 +338,7 @@ struct nfs_rpc_ops { int (*mkdir) (struct inode *, struct qstr *, struct iattr *, struct nfs_fh *, struct nfs_fattr *); int (*rmdir) (struct inode *, struct qstr *); - int (*readdir) (struct inode *, struct rpc_cred *, + int (*readdir) (struct dentry *, struct rpc_cred *, u64, struct page *, unsigned int, int); int (*mknod) (struct inode *, struct qstr *, struct iattr *, dev_t, struct nfs_fh *, struct nfs_fattr *); |
