1 /* XDR types for nfsd. This is mainly a typing exercise. */
14 struct nfsd_sattrargs
{
19 struct nfsd_diropargs
{
25 struct nfsd_readargs
{
32 struct nfsd_writeargs
{
39 struct nfsd_createargs
{
46 struct nfsd_renameargs
{
55 struct nfsd_readlinkargs
{
60 struct nfsd_linkargs
{
67 struct nfsd_symlinkargs
{
76 struct nfsd_readdirargs
{
83 struct nfsd_attrstat
{
88 struct nfsd_diropres
{
93 struct nfsd_readlinkres
{
103 struct nfsd_readdirres
{
106 struct readdir_cd common
;
112 struct nfsd_statfsres
{
113 struct kstatfs stats
;
117 * Storage requirements for XDR arguments and results.
119 union nfsd_xdrstore
{
120 struct nfsd_sattrargs sattr
;
121 struct nfsd_diropargs dirop
;
122 struct nfsd_readargs read
;
123 struct nfsd_writeargs write
;
124 struct nfsd_createargs create
;
125 struct nfsd_renameargs rename
;
126 struct nfsd_linkargs link
;
127 struct nfsd_symlinkargs symlink
;
128 struct nfsd_readdirargs readdir
;
131 #define NFS2_SVC_XDRSIZE sizeof(union nfsd_xdrstore)
134 int nfssvc_decode_void(struct svc_rqst
*, __be32
*, void *);
135 int nfssvc_decode_fhandle(struct svc_rqst
*, __be32
*, struct nfsd_fhandle
*);
136 int nfssvc_decode_sattrargs(struct svc_rqst
*, __be32
*,
137 struct nfsd_sattrargs
*);
138 int nfssvc_decode_diropargs(struct svc_rqst
*, __be32
*,
139 struct nfsd_diropargs
*);
140 int nfssvc_decode_readargs(struct svc_rqst
*, __be32
*,
141 struct nfsd_readargs
*);
142 int nfssvc_decode_writeargs(struct svc_rqst
*, __be32
*,
143 struct nfsd_writeargs
*);
144 int nfssvc_decode_createargs(struct svc_rqst
*, __be32
*,
145 struct nfsd_createargs
*);
146 int nfssvc_decode_renameargs(struct svc_rqst
*, __be32
*,
147 struct nfsd_renameargs
*);
148 int nfssvc_decode_readlinkargs(struct svc_rqst
*, __be32
*,
149 struct nfsd_readlinkargs
*);
150 int nfssvc_decode_linkargs(struct svc_rqst
*, __be32
*,
151 struct nfsd_linkargs
*);
152 int nfssvc_decode_symlinkargs(struct svc_rqst
*, __be32
*,
153 struct nfsd_symlinkargs
*);
154 int nfssvc_decode_readdirargs(struct svc_rqst
*, __be32
*,
155 struct nfsd_readdirargs
*);
156 int nfssvc_encode_void(struct svc_rqst
*, __be32
*, void *);
157 int nfssvc_encode_attrstat(struct svc_rqst
*, __be32
*, struct nfsd_attrstat
*);
158 int nfssvc_encode_diropres(struct svc_rqst
*, __be32
*, struct nfsd_diropres
*);
159 int nfssvc_encode_readlinkres(struct svc_rqst
*, __be32
*, struct nfsd_readlinkres
*);
160 int nfssvc_encode_readres(struct svc_rqst
*, __be32
*, struct nfsd_readres
*);
161 int nfssvc_encode_statfsres(struct svc_rqst
*, __be32
*, struct nfsd_statfsres
*);
162 int nfssvc_encode_readdirres(struct svc_rqst
*, __be32
*, struct nfsd_readdirres
*);
164 int nfssvc_encode_entry(void *, const char *name
,
165 int namlen
, loff_t offset
, u64 ino
, unsigned int);
167 int nfssvc_release_fhandle(struct svc_rqst
*, __be32
*, struct nfsd_fhandle
*);
169 /* Helper functions for NFSv2 ACL code */
170 __be32
*nfs2svc_encode_fattr(struct svc_rqst
*rqstp
, __be32
*p
, struct svc_fh
*fhp
, struct kstat
*stat
);
171 __be32
*nfs2svc_decode_fh(__be32
*p
, struct svc_fh
*fhp
);
173 #endif /* LINUX_NFSD_H */