Whamcloud - gitweb
LU-9369 lfs: make lfs find work correctly 14/26914/2
authorEmoly Liu <emoly.liu@intel.com>
Tue, 2 May 2017 06:37:26 +0000 (14:37 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 9 May 2017 03:47:20 +0000 (03:47 +0000)
commitb0404c136240a578655554d37689b47b47ef5920
tree0640a1ea515e6cddc317b4d0e4c2eff92cfaeb2f
parent92bbd06e4ddd2505fceaada9cda4bb0974733204
LU-9369 lfs: make lfs find work correctly

This patch resets fp_lmd->lmd_lmm.lmm_magic in case that the
previous file's lum is mistakenly used for the next directory in
cb_find_init().
This patch also improves sanity.sh test_56s and test_56t to verify
the fix.

Signed-off-by: Emoly Liu <emoly.liu@intel.com>
Change-Id: I717ec809ef199be50dd1c4c7e6152ab9aa223f94
Reviewed-on: https://review.whamcloud.com/26914
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity.sh
lustre/utils/liblustreapi.c