Whamcloud - gitweb
LU-10437 lod: clear layout header when generating layout 85/30785/2
authorJinshan Xiong <jinshan.xiong@intel.com>
Mon, 8 Jan 2018 21:36:35 +0000 (21:36 +0000)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 20 Jan 2018 06:19:49 +0000 (06:19 +0000)
commit47d6ce20cfd8b04f20f7fc7accc39b3902780900
tree0f4b43deed3a4512359f423bac714d5d2ce401c6
parentf51d4361d92647c4411bbb42b5aeb85e4e5288e7
LU-10437 lod: clear layout header when generating layout

LOD needs to clear layout header otherwise the lcm_flags and
lcm_padding will be random data, which will create issues when
those fields are used by future module.

It already confused FLR because it uses lcm_flags and mirror_count
to do sanity check.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: If9511e6691144debd51ccab575ef4479d0c9b865
Reviewed-on: https://review.whamcloud.com/30785
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/lod/lod_lov.c