From: Mi Jinlong Date: Thu, 14 Jul 2011 06:50:17 +0000 (+0800) Subject: nfsd41: error out when client sets maxreq_sz or maxresp_sz too small X-Git-Tag: v3.1-rc1~239^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b74c25bc1a142ee8dd7ad080e2a974f28d1cb18;p=pandora-kernel.git nfsd41: error out when client sets maxreq_sz or maxresp_sz too small According to RFC5661, 18.36.3, "if the client selects a value for ca_maxresponsesize such that a replier on a channel could never send a response,the server SHOULD return NFS4ERR_TOOSMALL in the CREATE_SESSION reply." So, error out when the client sets a maxreq_sz less than the minimum possible SEQUENCE request size, or sets a maxresp_sz less than the minimum possible SEQUENCE reply size. Signed-off-by: Mi Jinlong Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed