]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_scrub: schedule and manage optimizations/repairs to the filesystem
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 1 Aug 2018 22:06:44 +0000 (17:06 -0500)
committerEric Sandeen <sandeen@redhat.com>
Wed, 1 Aug 2018 22:06:44 +0000 (17:06 -0500)
commitee310b0ceeed2d8e25499016527d123b00bc4d40
treee2bcb9fc62d7367d02213f86143180462dde5485
parent224df90245a9f407be2eea4935ecd79989338bb9
xfs_scrub: schedule and manage optimizations/repairs to the filesystem

Teach xfs_scrub to remember scrub requests that failed (or indicated
that optimization is a possibility) as action items.  Depending on the
circumstances, certain items are acted upon immediately (e.g. metadata
that needs to be healthy in order to finish the scan, or files that are
already open) or deferred until later.  Expand the repair phase to
deal with the deferred actions.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
12 files changed:
man/man8/xfs_scrub.8
scrub/Makefile
scrub/phase1.c
scrub/phase2.c
scrub/phase3.c
scrub/phase4.c
scrub/repair.c [new file with mode: 0644]
scrub/repair.h [new file with mode: 0644]
scrub/scrub.c
scrub/scrub.h
scrub/xfs_scrub.c
scrub/xfs_scrub.h