Whamcloud - gitweb
LU-13535 lfsck: fix possible PFL layout corruption 85/38585/5
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 17:29:54 +0000 (17:29 +0000)
commit775ce1c26c843d9ef9e6919f85e5284828762095
tree1b4a013c8a3f2ace91aad09d968d0b178a7e024b
parent8f755f902356c3c3a95d8de509c6aac4b618f865
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.

Lustre-change: https://review.whamcloud.com/38584
Lustre-commit: be009cb4a73b3bef7302083bec7d1d6289d515b7

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