]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_repair: rebuild the metadata directory
authorDarrick J. Wong <djwong@kernel.org>
Thu, 21 Nov 2024 00:24:19 +0000 (16:24 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 24 Dec 2024 02:01:27 +0000 (18:01 -0800)
commit529a5b4e9cef5d1df2dac9914b167905ff7cb2b0
treea3626de37f664dc395a19f6718c76a8fc5823fce
parent62087e1931160437e579a0a74b0fb5a75f582606
xfs_repair: rebuild the metadata directory

Check the dirents in metadata directories for problems and repair them
if necessary.  Also make sure that the sb-rooted inodes (root, metadir
root, rt bitmap, rt summary) are always allocated in that order.

Note that xfs_repair will always rebuild the metadata directory tree
itself, so we only need to report problems, not fix them.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
14 files changed:
libxfs/libxfs_api_defs.h
repair/dino_chunks.c
repair/dir2.c
repair/globals.c
repair/globals.h
repair/incore.h
repair/phase1.c
repair/phase2.c
repair/phase4.c
repair/phase6.c
repair/pptr.c
repair/pptr.h
repair/sb.c
repair/xfs_repair.c