]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_scrub: fstrim the free areas if there are no errors on the filesystem
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 2 Feb 2018 15:32:46 +0000 (09:32 -0600)
committerEric Sandeen <sandeen@redhat.com>
Fri, 2 Feb 2018 15:32:46 +0000 (09:32 -0600)
commit7e36bc0fa8ad5a4aef21b7c1ca8bc2b52b5d0dd5
treecd7ac4c21969dc8dd87ae7c2b9ae97d70f6b7ed8
parent698c6c7cb8ba7572f79fa1c8a21dec4300cfc28e
xfs_scrub: fstrim the free areas if there are no errors on the filesystem

If the filesystem scan comes out clean or fixes all the problems, call
fstrim to clean out the free areas (if it's an ssd/thinp/whatever).

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>
man/man8/xfs_scrub.8
scrub/Makefile
scrub/phase4.c [new file with mode: 0644]
scrub/vfs.c
scrub/vfs.h
scrub/xfs_scrub.c
scrub/xfs_scrub.h