summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@fys.uio.no>2003-04-08 04:30:19 +0200
committerTrond Myklebust <trond.myklebust@fys.uio.no>2003-04-08 04:30:19 +0200
commitbe6c1a46a0609afffd8926a2f533158a8481689c (patch)
treefbb04bbf9781d99c37188f66f1f9cc0ecac0b202 /include/linux
parent45f3fae685e9579979b0dbed506c424688d72881 (diff)
Make NFSv4 'setattr()' method use the cached stateid if the file is
already open.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nfs4.h1
-rw-r--r--include/linux/nfs_xdr.h11
2 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/nfs4.h b/include/linux/nfs4.h
index ace7f169b5dc..de82796383bf 100644
--- a/include/linux/nfs4.h
+++ b/include/linux/nfs4.h
@@ -209,6 +209,7 @@ enum {
NFSPROC4_CLNT_OPEN,
NFSPROC4_CLNT_OPEN_CONFIRM,
NFSPROC4_CLNT_CLOSE,
+ NFSPROC4_CLNT_SETATTR,
};
#endif
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h
index 1b1db6599e6e..7c37e245e732 100644
--- a/include/linux/nfs_xdr.h
+++ b/include/linux/nfs_xdr.h
@@ -241,6 +241,17 @@ struct nfs_renameargs {
unsigned int tolen;
};
+struct nfs_setattrargs {
+ struct nfs_fh * fh;
+ nfs4_stateid stateid;
+ struct iattr * iap;
+ struct nfs4_getattr * attr;
+};
+
+struct nfs_setattrres {
+ struct nfs4_getattr * attr;
+};
+
struct nfs_linkargs {
struct nfs_fh * fromfh;
struct nfs_fh * tofh;