Commit 6178713b authored by Frank van der Linden's avatar Frank van der Linden Committed by Chuck Lever

nfsd: add structure definitions for xattr requests / responses

Add the structures used in extended attribute request / response handling.
Signed-off-by: default avatarFrank van der Linden <fllinden@amazon.com>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent c11d7fd1
...@@ -224,6 +224,32 @@ struct nfsd4_putfh { ...@@ -224,6 +224,32 @@ struct nfsd4_putfh {
bool no_verify; /* represents foreigh fh */ bool no_verify; /* represents foreigh fh */
}; };
struct nfsd4_getxattr {
char *getxa_name; /* request */
u32 getxa_len; /* request */
void *getxa_buf;
};
struct nfsd4_setxattr {
u32 setxa_flags; /* request */
char *setxa_name; /* request */
char *setxa_buf; /* request */
u32 setxa_len; /* request */
struct nfsd4_change_info setxa_cinfo; /* response */
};
struct nfsd4_removexattr {
char *rmxa_name; /* request */
struct nfsd4_change_info rmxa_cinfo; /* response */
};
struct nfsd4_listxattrs {
u64 lsxa_cookie; /* request */
u32 lsxa_maxcount; /* request */
char *lsxa_buf; /* unfiltered buffer (reply) */
u32 lsxa_len; /* unfiltered len (reply) */
};
struct nfsd4_open { struct nfsd4_open {
u32 op_claim_type; /* request */ u32 op_claim_type; /* request */
struct xdr_netobj op_fname; /* request - everything but CLAIM_PREV */ struct xdr_netobj op_fname; /* request - everything but CLAIM_PREV */
...@@ -649,6 +675,11 @@ struct nfsd4_op { ...@@ -649,6 +675,11 @@ struct nfsd4_op {
struct nfsd4_offload_status offload_status; struct nfsd4_offload_status offload_status;
struct nfsd4_copy_notify copy_notify; struct nfsd4_copy_notify copy_notify;
struct nfsd4_seek seek; struct nfsd4_seek seek;
struct nfsd4_getxattr getxattr;
struct nfsd4_setxattr setxattr;
struct nfsd4_listxattrs listxattrs;
struct nfsd4_removexattr removexattr;
} u; } u;
struct nfs4_replay * replay; struct nfs4_replay * replay;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment