OSDN Git Service

xfs: track metadata health status
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 12 Apr 2019 14:40:25 +0000 (07:40 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 15 Apr 2019 01:15:57 +0000 (18:15 -0700)
commit6772c1f11206f270af56d62bc26737864a63608a
treed75689f19c91e54fb2de867cbaaa89beccc46f63
parent2bf9d264efededefa8a339e31995a90df13e5fbe
xfs: track metadata health status

Add the necessary in-core metadata fields to keep track of which parts
of the filesystem have been observed and which parts were observed to be
unhealthy, and print a warning at unmount time if we have unfixed
problems.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/Makefile
fs/xfs/libxfs/xfs_health.h [new file with mode: 0644]
fs/xfs/xfs_health.c [new file with mode: 0644]
fs/xfs/xfs_icache.c
fs/xfs/xfs_inode.h
fs/xfs/xfs_mount.c
fs/xfs/xfs_mount.h
fs/xfs/xfs_trace.h