linux/fs/xfs/scrub
Darrick J. Wong 04a2b7b254 xfs: recover AG btree roots from rmap data
Add a helper function to help us recover btree roots from the rmap data.
Callers pass in a list of rmap owner codes, buffer ops, and magic
numbers.  We iterate the rmap records looking for owner matches, and
then read the matching blocks to see if the magic number & uuid match.
If so, we then read-verify the block, and if that passes then we retain
a pointer to the block with the highest level, assuming that by the end
of the call we will have found the root.  This will be used to reset the
AGF/AGI btree root fields during their rebuild procedures.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
2018-05-30 08:03:14 -07:00
..
agheader.c xfs: hoist xfs_scrub_agfl_walk to libxfs as xfs_agfl_walk 2018-05-15 18:12:50 -07:00
alloc.c xfs: skip scrub xref if corruption already noted 2018-05-15 17:57:05 -07:00
attr.c xfs: don't continue scrub if already corrupt 2018-05-15 18:12:50 -07:00
bmap.c xfs: add helpers to deal with transaction allocation and rolling 2018-05-30 08:03:14 -07:00
btree.c xfs: btree scrub should check minrecs 2018-05-15 17:57:05 -07:00
btree.h xfs: set up scrub cross-referencing helpers 2018-01-17 21:00:44 -08:00
common.c xfs: add helpers to deal with transaction allocation and rolling 2018-05-30 08:03:14 -07:00
common.h xfs: add helpers to deal with transaction allocation and rolling 2018-05-30 08:03:14 -07:00
dabtree.c xfs: scrub in-core metadata 2018-01-17 21:00:46 -08:00
dabtree.h xfs: scrub extended attribute leaf space 2017-11-01 15:03:16 -07:00
dir.c xfs: don't continue scrub if already corrupt 2018-05-15 18:12:50 -07:00
ialloc.c xfs: skip scrub xref if corruption already noted 2018-05-15 17:57:05 -07:00
inode.c xfs: add helpers to deal with transaction allocation and rolling 2018-05-30 08:03:14 -07:00
parent.c xfs: avoid ABBA deadlock when scrubbing parent pointers 2018-05-15 18:12:50 -07:00
quota.c xfs: quota scrub should use bmapbtd scrubber 2018-05-15 18:12:50 -07:00
refcount.c xfs: skip scrub xref if corruption already noted 2018-05-15 17:57:05 -07:00
repair.c xfs: recover AG btree roots from rmap data 2018-05-30 08:03:14 -07:00
repair.h xfs: recover AG btree roots from rmap data 2018-05-30 08:03:14 -07:00
rmap.c xfs: skip scrub xref if corruption already noted 2018-05-15 17:57:05 -07:00
rtbitmap.c xfs: scrub the data fork of the realtime inodes 2018-05-15 18:12:50 -07:00
scrub.c xfs: implement the metadata repair ioctl flag 2018-05-15 18:12:50 -07:00
scrub.h xfs: grab the per-ag structure whenever relevant 2018-05-30 08:03:14 -07:00
symlink.c xfs: scrub symbolic links 2017-10-26 15:38:26 -07:00
trace.c fs: xfs: remove duplicate includes 2017-12-08 17:51:05 -08:00
trace.h xfs: create tracepoints for online repair 2018-05-15 18:12:50 -07:00
xfs_scrub.h