summaryrefslogtreecommitdiff
tag namerepair-hard-problems_2020-06-01 (9b621eaaecb4ac12ec9216c51c41b72f6953b8ff)
tag date2020-06-01 21:21:35 -0700
tagged byDarrick J. Wong <darrick.wong@oracle.com>
tagged objectcommit 881b950405...
xfs: online repair hard problems
In this sixth part of the twenty-second revision of the online repair patchset, we provide all the repair features that require the entire filesystem to be frozen. Patch 1 gives scrub the ability to freeze the filesystem so that it can do scans and repairs in mostly-exclusive mode. Patch 2 is unnecessary? It provides async io for xfile, which has massive overhead costs but mostly shuts up lockdep. Patch 3 implements reverse mapping btree reconstruction. Patch 4 reimplements quotacheck as an online operation. Patch 5 implements a summary counter repair function. In contrast to its scrub-only counterpart, if we decide to repair the summary counters we need to freeze the filesystem to prevent any concurrent operations while we calculate the correct value for the summary counters. Patch 6 teaches the directory salvaging code to scan the filesystem for the proper inode to install as the '..' entry. Patch 7 implements parent pointer repair for directories.