Whamcloud - gitweb
LU-13535 lfsck: fix possible PFL layout corruption 84/38584/4
authorMikhail Pershin <mpershin@whamcloud.com>
Tue, 12 May 2020 20:32:22 +0000 (23:32 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 27 May 2020 05:03:31 +0000 (05:03 +0000)
commitbe009cb4a73b3bef7302083bec7d1d6289d515b7
tree8dcd0d52213e9e4da5d93f239979938a7dad4a35
parent1c54733894f81e854363fbd2d49c141842f73ae4
LU-13535 lfsck: fix possible PFL layout corruption

While checking lmm_oi in composite layout the pointer to 'lmm'
is re-assigned to component entry but the same pointer is used
for LOV EA buffer to update EA. Therefore if lmm_oi was fixed in
some component then just current entry is saved as new layout.

Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: Ifbd984a71b383ab4ca35ad59ed9cd8cf57b6d7cc
Reviewed-on: https://review.whamcloud.com/38584
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Stephan Thiell <sthiell@stanford.edu>
lustre/lfsck/lfsck_layout.c
lustre/tests/sanity-lfsck.sh