diff options
| author | Trond Myklebust <trond.myklebust@fys.uio.no> | 2002-10-09 22:47:02 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-10-09 22:47:02 -0700 |
| commit | 62d86355a150657b217f03a0617a757962a6fde9 (patch) | |
| tree | e14922e840990cdbaa6c1e5b773f1cfbde915da6 /include/linux | |
| parent | 40a4b2a4836023d76b652f1fd695c1c6d4d63632 (diff) | |
[PATCH] A basic NFSv4 client for 2.5.x
This patch changes the interface of the ->setattr() nfs_rpc_op
so that its first argument is a dentry instead of an inode.
[Explanation: The dentry is required because in NFSv4, we may
need to OPEN the file before doing the SETATTR. (This is
required if the file size is changed as part of the setattr.)
Opening the file requires making use of the containing
directory's inode.]
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 b27525074317..5f6b8b84e37f 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h @@ -307,7 +307,7 @@ struct nfs_rpc_ops { int (*getroot) (struct nfs_server *, struct nfs_fh *, struct nfs_fattr *); int (*getattr) (struct inode *, struct nfs_fattr *); - int (*setattr) (struct inode *, struct nfs_fattr *, + int (*setattr) (struct dentry *, struct nfs_fattr *, struct iattr *); int (*lookup) (struct inode *, struct qstr *, struct nfs_fh *, struct nfs_fattr *); |
