You need to sign in or sign up before continuing.
提交 5a1f6d9e 编写于 作者: T Trond Myklebust 提交者: Anna Schumaker

NFSv4: Fix the underestimation of delegation XDR space reservation

Account for the "space_limit" field in struct open_write_delegation4.

Fixes: 2cebf828 ("NFSv4: Fix the underestimate of NFSv4 open request size")
Signed-off-by: NTrond Myklebust <trond.myklebust@primarydata.com>
Reviewed-by: NChuck Lever <chuck.lever@oracle.com>
Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com>
上级 c065eeea
...@@ -169,8 +169,10 @@ static int nfs4_stat_to_errno(int); ...@@ -169,8 +169,10 @@ static int nfs4_stat_to_errno(int);
open_owner_id_maxsz + \ open_owner_id_maxsz + \
encode_opentype_maxsz + \ encode_opentype_maxsz + \
encode_claim_null_maxsz) encode_claim_null_maxsz)
#define decode_space_limit_maxsz (3)
#define decode_ace_maxsz (3 + nfs4_owner_maxsz) #define decode_ace_maxsz (3 + nfs4_owner_maxsz)
#define decode_delegation_maxsz (1 + decode_stateid_maxsz + 1 + \ #define decode_delegation_maxsz (1 + decode_stateid_maxsz + 1 + \
decode_space_limit_maxsz + \
decode_ace_maxsz) decode_ace_maxsz)
#define decode_change_info_maxsz (5) #define decode_change_info_maxsz (5)
#define decode_open_maxsz (op_decode_hdr_maxsz + \ #define decode_open_maxsz (op_decode_hdr_maxsz + \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册