summaryrefslogtreecommitdiffstats
tag nameinode-repair-improvements_2024-03-17 (7050639887cb9529efc1a15960d8fd5bcf343a50)
tag date2024-03-17 08:52:23 -0700
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit 12db2b9278...
downloadxfs-linux-inode-repair-improvements_2024-03-17.tar.gz
xfs: inode-related repair fixes [v29.5 34/71]
While doing QA of the online fsck code, I made a few observations: First, nobody was checking that the di_onlink field is actually zero; Second, that allocating a temporary file for repairs can fail (and thus bring down the entire fs) if the inode cluster is corrupt; and Third, that file link counts do not pin at ~0U to prevent integer overflows. Fourth, the x{chk,rep}_metadata_inode_fork functions should be subclassing the main scrub context, not modifying the parent's setup willy-nilly. This scattered patchset fixes those three problems. This has been running on the djcloud for months with no problems. Enjoy! Signed-off-by: Darrick J. Wong <djwong@kernel.org> -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQ2qTKExjcn+O1o2YRKO3ySh0YRpgUCZfcRtwAKCRBKO3ySh0YR poepAQDQNBbWV8T+wlpap+gSw6se+VcbtZrljl40ASIfsi5FeQD/ZeuIdYqxRb/K ef/tHcaUmqmUDSto8ayZ4ZRptYdAMwM= =x7RX -----END PGP SIGNATURE-----