]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: check metadata directory file path connectivity
authorDarrick J. Wong <djwong@kernel.org>
Wed, 7 Aug 2024 22:54:25 +0000 (15:54 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 16 Aug 2024 21:54:04 +0000 (14:54 -0700)
commit1557233d3c71394f0e5ff9dbe2f21c44e89fa99e
tree45277a474179d60a932fdee0ca669d71f75f8de0
parent9b9d6d487ae96a4e1d989e63341cd448ce8da665
xfs: check metadata directory file path connectivity

Create a new scrubber type that checks that well known metadata
directory paths are connected to the metadata inode that the incore
structures think is in use.  IOWs, check that "/quota/user" in the
metadata directory tree actually points to
mp->m_quotainfo->qi_uquotaip->i_ino.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
12 files changed:
fs/xfs/Makefile
fs/xfs/libxfs/xfs_fs.h
fs/xfs/libxfs/xfs_health.h
fs/xfs/scrub/common.h
fs/xfs/scrub/health.c
fs/xfs/scrub/metapath.c [new file with mode: 0644]
fs/xfs/scrub/scrub.c
fs/xfs/scrub/scrub.h
fs/xfs/scrub/stats.c
fs/xfs/scrub/trace.c
fs/xfs/scrub/trace.h
fs/xfs/xfs_health.c