Skip to content

Commit 6178713

Browse files
fllindenchucklever
authored andcommitted
nfsd: add structure definitions for xattr requests / responses
Add the structures used in extended attribute request / response handling. Signed-off-by: Frank van der Linden <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent c11d7fd commit 6178713

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

fs/nfsd/xdr4.h

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,32 @@ struct nfsd4_putfh {
224224
bool no_verify; /* represents foreigh fh */
225225
};
226226

227+
struct nfsd4_getxattr {
228+
char *getxa_name; /* request */
229+
u32 getxa_len; /* request */
230+
void *getxa_buf;
231+
};
232+
233+
struct nfsd4_setxattr {
234+
u32 setxa_flags; /* request */
235+
char *setxa_name; /* request */
236+
char *setxa_buf; /* request */
237+
u32 setxa_len; /* request */
238+
struct nfsd4_change_info setxa_cinfo; /* response */
239+
};
240+
241+
struct nfsd4_removexattr {
242+
char *rmxa_name; /* request */
243+
struct nfsd4_change_info rmxa_cinfo; /* response */
244+
};
245+
246+
struct nfsd4_listxattrs {
247+
u64 lsxa_cookie; /* request */
248+
u32 lsxa_maxcount; /* request */
249+
char *lsxa_buf; /* unfiltered buffer (reply) */
250+
u32 lsxa_len; /* unfiltered len (reply) */
251+
};
252+
227253
struct nfsd4_open {
228254
u32 op_claim_type; /* request */
229255
struct xdr_netobj op_fname; /* request - everything but CLAIM_PREV */
@@ -649,6 +675,11 @@ struct nfsd4_op {
649675
struct nfsd4_offload_status offload_status;
650676
struct nfsd4_copy_notify copy_notify;
651677
struct nfsd4_seek seek;
678+
679+
struct nfsd4_getxattr getxattr;
680+
struct nfsd4_setxattr setxattr;
681+
struct nfsd4_listxattrs listxattrs;
682+
struct nfsd4_removexattr removexattr;
652683
} u;
653684
struct nfs4_replay * replay;
654685
};

0 commit comments

Comments
 (0)