]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
libfrog: create a new scrub group for things requiring full inode scans
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 17:00:50 +0000 (10:00 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 3 Jun 2024 18:37:35 +0000 (11:37 -0700)
commit493d04e97479b36f34a895171ed852cd2e3298b2
tree0aebe233cb63c3c696a8d3e35a01492f2da4fd2b
parent73cdf0032b170ccb5c5f989fde50dfd361030027
libfrog: create a new scrub group for things requiring full inode scans

Subsequent patches will add online fsck types (quotacheck, link counts)
that require us to walk every inode in the entire filesystem.  This
requires the AG metadata and the inodes to be in good enough shape to
complete the scan without hitting corruption errors.  As such, they
ought to run after phases 2-4 and before phase 7, which summarizes what
we've found.

Phase 5 seems like a reasonable place to do this, since it already walks
every xattr and directory entry in the filesystem to look for suspicious
looking names.  Add a new XFROG_SCRUB_GROUP, and add it to phase 5.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
io/scrub.c
libfrog/scrub.h
scrub/phase5.c
scrub/scrub.c
scrub/scrub.h
scrub/xfs_scrub.h