Whamcloud - gitweb
LU-4847 mdc: use cl_max_mds_md to pack getattr RPC 62/9862/5
authorwang di <di.wang@intel.com>
Tue, 1 Apr 2014 10:19:31 +0000 (03:19 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 17 Apr 2014 18:10:21 +0000 (18:10 +0000)
commitc36e8784ebc616443fb6b9205559150d005c78f7
tree242d2717e2835249424ceb917670fc2c857997e5
parentb44cae1564e49343eb769f6b08f144dee10361ec
LU-4847 mdc: use cl_max_mds_md to pack getattr RPC

In some cases, cl_default_mds_easize might be zero, especially for
MDC connected to non-MDT0, then mdc might pack getattr RPC with
zero eadatasize.

If client is trying to access remote striped directory with
zero eadatasize, MDT will not return layout information of the
striped direcotry, which will be mis-regarded as non-striped
directory.

So we should use cl_max_mds_easize if cl_default_mds_easize is zero.

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: Ia2939a6c8a724c37303eeeda46a4e3d94360353c
Reviewed-on: http://review.whamcloud.com/9862
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdc/mdc_locks.c