Hi all, Now that we have the ability to set per-filesystem properties, teach the background xfs_scrub service to pick up advice from the filesystem that it wants to examine, and pick a mode from that. We're only going to enable this by default for newer filesystems. If you're going to start using this code, I strongly recommend pulling from my git trees, which are linked below. This has been running on the djcloud for months with no problems. Enjoy! Comments and questions are, as always, welcome. xfsprogs git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=autofsck-6.10 --- Commits in this patchset: * libfrog: define a autofsck filesystem property * xfs_scrub: allow sysadmin to control background scrubs * xfs_scrub: use the autofsck fsproperty to select mode * mkfs: set autofsck filesystem property --- libfrog/fsproperties.c | 38 ++++++++++++ libfrog/fsproperties.h | 13 ++++ man/man8/mkfs.xfs.8.in | 6 ++ man/man8/xfs_property.8 | 8 ++ man/man8/xfs_scrub.8 | 46 ++++++++++++++ mkfs/lts_4.19.conf | 1 mkfs/lts_5.10.conf | 1 mkfs/lts_5.15.conf | 1 mkfs/lts_5.4.conf | 1 mkfs/lts_6.1.conf | 1 mkfs/lts_6.6.conf | 1 mkfs/xfs_mkfs.c | 122 +++++++++++++++++++++++++++++++++++++ scrub/Makefile | 3 - scrub/phase1.c | 91 ++++++++++++++++++++++++++++ scrub/xfs_scrub.c | 14 ++++ scrub/xfs_scrub.h | 7 ++ scrub/xfs_scrub@xxxxxxxxxxx | 2 - scrub/xfs_scrub_media@xxxxxxxxxxx | 2 - 18 files changed, 353 insertions(+), 5 deletions(-)