]> 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>
Wed, 24 Jul 2019 19:53:56 +0000 (15:53 -0400)
committerEric Sandeen <sandeen@redhat.com>
Wed, 24 Jul 2019 19:53:56 +0000 (15:53 -0400)
commit25b8487b49f50486c7b8e57677ce101fe6d6379d
tree6b71d3025233c5def0c3b9f11d78f78d1aaca022
parent7b55f0f2e5f97697f1253f53e21f770f7a4796fc
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