diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2020-11-16 23:45:04 +0100 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2020-11-30 20:46:39 +0100 |
commit | 1708e50b0145f393acbec9e319bdf0e33f765d25 (patch) | |
tree | 2e4090021246285702ff519cfc936ef00c820ef6 /fs/nfsd/xdr4.h | |
parent | NFSD: Replace READ* macros in nfsd4_decode_share_deny() (diff) | |
download | linux-1708e50b0145f393acbec9e319bdf0e33f765d25.tar.xz linux-1708e50b0145f393acbec9e319bdf0e33f765d25.zip |
NFSD: Add helper to decode OPEN's open_claim4 argument
Refactor for clarity.
Note that op_fname is the only instance of an NFSv4 filename stored
in a struct xdr_netobj. Convert it to a u32/char * pair so that the
new nfsd4_decode_filename() helper can be used.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/xdr4.h')
-rw-r--r-- | fs/nfsd/xdr4.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfsd/xdr4.h b/fs/nfsd/xdr4.h index 0eb13bd603ea..6245004a9993 100644 --- a/fs/nfsd/xdr4.h +++ b/fs/nfsd/xdr4.h @@ -252,7 +252,8 @@ struct nfsd4_listxattrs { struct nfsd4_open { u32 op_claim_type; /* request */ - struct xdr_netobj op_fname; /* request - everything but CLAIM_PREV */ + u32 op_fnamelen; + char * op_fname; /* request - everything but CLAIM_PREV */ u32 op_delegate_type; /* request - CLAIM_PREV only */ stateid_t op_delegate_stateid; /* request - response */ u32 op_why_no_deleg; /* response - DELEG_NONE_EXT only */ |