]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: check metadata directory file path connectivity
authorDarrick J. Wong <djwong@kernel.org>
Mon, 4 Nov 2024 04:19:02 +0000 (20:19 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:38:34 +0000 (13:38 -0800)
commitb3c03efa5972f084e40104307dbe432359279cf2
treeed41aeb53a63c54ca9b03283afa6deeda696a17a
parent9dc31acb01a1c7649c35b7954562a9a33b817c33
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.  For example, 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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
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