aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenny Halevy <bhalevy@panasas.com>2009-04-01 09:23:24 -0400
committerBenny Halevy <bhalevy@panasas.com>2009-06-17 17:11:37 -0400
commit2d9b9ec344b19b7b65c732b7000114df57684140 (patch)
tree1d31a4ab02b1e783b85064e2942151bef1033d2d
parent34bc47c941a074f91c2455b4b08503d02c74b878 (diff)
nfs41: cb_sequence protocol level data structures
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
-rw-r--r--fs/nfs/callback.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/fs/nfs/callback.h b/fs/nfs/callback.h
index 80fd8a82964f..2b933ce064dd 100644
--- a/fs/nfs/callback.h
+++ b/fs/nfs/callback.h
@@ -70,6 +70,41 @@ struct cb_recallargs {
70 uint32_t truncate; 70 uint32_t truncate;
71}; 71};
72 72
73#if defined(CONFIG_NFS_V4_1)
74
75struct referring_call {
76 uint32_t rc_sequenceid;
77 uint32_t rc_slotid;
78};
79
80struct referring_call_list {
81 struct nfs4_sessionid rcl_sessionid;
82 uint32_t rcl_nrefcalls;
83 struct referring_call *rcl_refcalls;
84};
85
86struct cb_sequenceargs {
87 struct sockaddr_in *csa_addr;
88 struct nfs4_sessionid csa_sessionid;
89 uint32_t csa_sequenceid;
90 uint32_t csa_slotid;
91 uint32_t csa_highestslotid;
92 uint32_t csa_cachethis;
93 uint32_t csa_nrclists;
94 struct referring_call_list *csa_rclists;
95};
96
97struct cb_sequenceres {
98 uint32_t csr_status;
99 struct nfs4_sessionid csr_sessionid;
100 uint32_t csr_sequenceid;
101 uint32_t csr_slotid;
102 uint32_t csr_highestslotid;
103 uint32_t csr_target_highestslotid;
104};
105
106#endif /* CONFIG_NFS_V4_1 */
107
73extern __be32 nfs4_callback_getattr(struct cb_getattrargs *args, struct cb_getattrres *res); 108extern __be32 nfs4_callback_getattr(struct cb_getattrargs *args, struct cb_getattrres *res);
74extern __be32 nfs4_callback_recall(struct cb_recallargs *args, void *dummy); 109extern __be32 nfs4_callback_recall(struct cb_recallargs *args, void *dummy);
75 110