From: Andy Adamson Date: Tue, 25 Jun 2013 23:02:53 +0000 (-0400) Subject: NFSv4.1 Fix gdia_maxcount calculation to fit in ca_maxresponsesize X-Git-Tag: v3.11-rc1~72^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1c097be2b35dcfc06c1c591194d78058dd67284;p=pandora-kernel.git 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 Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed