]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_scrub: move FITRIM to phase 8
authorDarrick J. Wong <djwong@kernel.org>
Wed, 3 Jul 2024 21:21:11 +0000 (14:21 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 31 Jul 2024 01:45:33 +0000 (18:45 -0700)
commit4a1a9acf1af3766b2b3f35c009e1b17df79aba74
treece77ccef30012c74dde0b6cf4695dab370b34685
parent9bbbdd1d9eb7fb18c847195bcfff753f77bc1da1
xfs_scrub: move FITRIM to phase 8

Issuing discards against the filesystem should be the *last* thing that
xfs_scrub does, after everything else has been checked, repaired, and
found to be clean.  If we can't satisfy all those conditions, we have no
business telling the storage to discard itself.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
scrub/Makefile
scrub/phase4.c
scrub/phase8.c [new file with mode: 0644]
scrub/xfs_scrub.h