mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-30 10:49:28 +00:00
[PATCH] xdr annotations: NFSv2 server
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Acked-by: Trond Myklebust <trond.myklebust@fys.uio.no> Acked-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
ad451d389f
commit
131a21c217
4 changed files with 71 additions and 71 deletions
|
@ -50,7 +50,7 @@
|
|||
* Callback function for readdir
|
||||
*/
|
||||
struct readdir_cd {
|
||||
int err; /* 0, nfserr, or nfserr_eof */
|
||||
__be32 err; /* 0, nfserr, or nfserr_eof */
|
||||
};
|
||||
typedef int (*encode_dent_fn)(struct readdir_cd *, const char *,
|
||||
int, loff_t, ino_t, unsigned int);
|
||||
|
|
|
@ -81,7 +81,7 @@ struct nfsd_readdirargs {
|
|||
struct svc_fh fh;
|
||||
__u32 cookie;
|
||||
__u32 count;
|
||||
u32 * buffer;
|
||||
__be32 * buffer;
|
||||
};
|
||||
|
||||
struct nfsd_attrstat {
|
||||
|
@ -108,9 +108,9 @@ struct nfsd_readdirres {
|
|||
int count;
|
||||
|
||||
struct readdir_cd common;
|
||||
u32 * buffer;
|
||||
__be32 * buffer;
|
||||
int buflen;
|
||||
u32 * offset;
|
||||
__be32 * offset;
|
||||
};
|
||||
|
||||
struct nfsd_statfsres {
|
||||
|
@ -135,43 +135,43 @@ union nfsd_xdrstore {
|
|||
#define NFS2_SVC_XDRSIZE sizeof(union nfsd_xdrstore)
|
||||
|
||||
|
||||
int nfssvc_decode_void(struct svc_rqst *, u32 *, void *);
|
||||
int nfssvc_decode_fhandle(struct svc_rqst *, u32 *, struct nfsd_fhandle *);
|
||||
int nfssvc_decode_sattrargs(struct svc_rqst *, u32 *,
|
||||
int nfssvc_decode_void(struct svc_rqst *, __be32 *, void *);
|
||||
int nfssvc_decode_fhandle(struct svc_rqst *, __be32 *, struct nfsd_fhandle *);
|
||||
int nfssvc_decode_sattrargs(struct svc_rqst *, __be32 *,
|
||||
struct nfsd_sattrargs *);
|
||||
int nfssvc_decode_diropargs(struct svc_rqst *, u32 *,
|
||||
int nfssvc_decode_diropargs(struct svc_rqst *, __be32 *,
|
||||
struct nfsd_diropargs *);
|
||||
int nfssvc_decode_readargs(struct svc_rqst *, u32 *,
|
||||
int nfssvc_decode_readargs(struct svc_rqst *, __be32 *,
|
||||
struct nfsd_readargs *);
|
||||
int nfssvc_decode_writeargs(struct svc_rqst *, u32 *,
|
||||
int nfssvc_decode_writeargs(struct svc_rqst *, __be32 *,
|
||||
struct nfsd_writeargs *);
|
||||
int nfssvc_decode_createargs(struct svc_rqst *, u32 *,
|
||||
int nfssvc_decode_createargs(struct svc_rqst *, __be32 *,
|
||||
struct nfsd_createargs *);
|
||||
int nfssvc_decode_renameargs(struct svc_rqst *, u32 *,
|
||||
int nfssvc_decode_renameargs(struct svc_rqst *, __be32 *,
|
||||
struct nfsd_renameargs *);
|
||||
int nfssvc_decode_readlinkargs(struct svc_rqst *, u32 *,
|
||||
int nfssvc_decode_readlinkargs(struct svc_rqst *, __be32 *,
|
||||
struct nfsd_readlinkargs *);
|
||||
int nfssvc_decode_linkargs(struct svc_rqst *, u32 *,
|
||||
int nfssvc_decode_linkargs(struct svc_rqst *, __be32 *,
|
||||
struct nfsd_linkargs *);
|
||||
int nfssvc_decode_symlinkargs(struct svc_rqst *, u32 *,
|
||||
int nfssvc_decode_symlinkargs(struct svc_rqst *, __be32 *,
|
||||
struct nfsd_symlinkargs *);
|
||||
int nfssvc_decode_readdirargs(struct svc_rqst *, u32 *,
|
||||
int nfssvc_decode_readdirargs(struct svc_rqst *, __be32 *,
|
||||
struct nfsd_readdirargs *);
|
||||
int nfssvc_encode_void(struct svc_rqst *, u32 *, void *);
|
||||
int nfssvc_encode_attrstat(struct svc_rqst *, u32 *, struct nfsd_attrstat *);
|
||||
int nfssvc_encode_diropres(struct svc_rqst *, u32 *, struct nfsd_diropres *);
|
||||
int nfssvc_encode_readlinkres(struct svc_rqst *, u32 *, struct nfsd_readlinkres *);
|
||||
int nfssvc_encode_readres(struct svc_rqst *, u32 *, struct nfsd_readres *);
|
||||
int nfssvc_encode_statfsres(struct svc_rqst *, u32 *, struct nfsd_statfsres *);
|
||||
int nfssvc_encode_readdirres(struct svc_rqst *, u32 *, struct nfsd_readdirres *);
|
||||
int nfssvc_encode_void(struct svc_rqst *, __be32 *, void *);
|
||||
int nfssvc_encode_attrstat(struct svc_rqst *, __be32 *, struct nfsd_attrstat *);
|
||||
int nfssvc_encode_diropres(struct svc_rqst *, __be32 *, struct nfsd_diropres *);
|
||||
int nfssvc_encode_readlinkres(struct svc_rqst *, __be32 *, struct nfsd_readlinkres *);
|
||||
int nfssvc_encode_readres(struct svc_rqst *, __be32 *, struct nfsd_readres *);
|
||||
int nfssvc_encode_statfsres(struct svc_rqst *, __be32 *, struct nfsd_statfsres *);
|
||||
int nfssvc_encode_readdirres(struct svc_rqst *, __be32 *, struct nfsd_readdirres *);
|
||||
|
||||
int nfssvc_encode_entry(struct readdir_cd *, const char *name,
|
||||
int namlen, loff_t offset, ino_t ino, unsigned int);
|
||||
|
||||
int nfssvc_release_fhandle(struct svc_rqst *, u32 *, struct nfsd_fhandle *);
|
||||
int nfssvc_release_fhandle(struct svc_rqst *, __be32 *, struct nfsd_fhandle *);
|
||||
|
||||
/* Helper functions for NFSv2 ACL code */
|
||||
u32 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, u32 *p, struct svc_fh *fhp);
|
||||
u32 *nfs2svc_decode_fh(u32 *p, struct svc_fh *fhp);
|
||||
__be32 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp);
|
||||
__be32 *nfs2svc_decode_fh(__be32 *p, struct svc_fh *fhp);
|
||||
|
||||
#endif /* LINUX_NFSD_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue