NFSv4.1 Fix gdia_maxcount calculation to fit in ca_maxresponsesize
The GETDEVICEINFO gdia_maxcount represents all of the data being returned within the GETDEVICEINFO4resok structure and includes the XDR overhead. The CREATE_SESSION ca_maxresponsesize is the maximum reply and includes the RPC headers (including security flavor credentials and verifiers). Split out the struct pnfs_device field maxcount which is the gdia_maxcount from the pglen field which is the reply (the total) buffer length. Signed-off-by: Andy Adamson <andros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
这个提交包含在:
@@ -255,6 +255,7 @@ extern int nfs4_decode_dirent(struct xdr_stream *,
|
||||
#ifdef CONFIG_NFS_V4_1
|
||||
extern const u32 nfs41_maxread_overhead;
|
||||
extern const u32 nfs41_maxwrite_overhead;
|
||||
extern const u32 nfs41_maxgetdevinfo_overhead;
|
||||
#endif
|
||||
|
||||
/* nfs4proc.c */
|
||||
|
在新工单中引用
屏蔽一个用户