Whamcloud - gitweb
LU-4222 mdt: extra checking for getattr RPC. 50/8550/8 b2_4
authorwang di <di.wang@intel.com>
Thu, 12 Dec 2013 18:33:56 +0000 (10:33 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 27 Mar 2014 18:12:32 +0000 (14:12 -0400)
commitd00e4d66c222d1d6d0d64762ee6d13bdf7f80817
treea847953ea7e64322eb0b34ae38428a408258d8f0
parent03c20f7ad344e1ded7eba39fdda1092195603c48
LU-4222 mdt: extra checking for getattr RPC.

It should check whether getattr RPC can hold
layout MD(RMF_MDT_MD), in case the client sends
some invalid RPC, which can cause panic on MDT.

Client will retrieve cl_max_md_size/cl_default_md_size
from MDS during mount process, so it will initialize
cl_max_md_size/cl_default_md_size before sending getattr
to MDS.

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: Ic12f281d574e7138ee0e1d5aae6161b7607837cc
lustre/llite/llite_lib.c
lustre/mdc/mdc_request.c
lustre/mdt/mdt_handler.c