]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: clear BAD_SUMMARY if unmounting an unhealthy filesystem
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 19 Jul 2019 18:24:47 +0000 (14:24 -0400)
committerEric Sandeen <sandeen@redhat.com>
Fri, 19 Jul 2019 18:24:47 +0000 (14:24 -0400)
commitc59c46da3e497a5328055334d07cddf4315d14ef
tree6b71d3025233c5def0c3b9f11d78f78d1aaca022
parentc9efb79db21468b95d7e2f3fe768578ffc1b7d70
xfs: clear BAD_SUMMARY if unmounting an unhealthy filesystem

Source kernel commit: 519841c207de9926418d2f39e162097088478781

If we know the filesystem metadata isn't healthy during unmount, we want
to encourage the administrator to run xfs_repair right away.  We can't
do this if BAD_SUMMARY will cause an unclean log unmount to force
summary recalculation, so turn it off if the fs is bad.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_health.h