]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_repair: metadata dirs are never plausible root dirs
authorDarrick J. Wong <djwong@kernel.org>
Thu, 21 Nov 2024 00:24:21 +0000 (16:24 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 24 Dec 2024 02:01:28 +0000 (18:01 -0800)
commitf1184d8d28c5e7e923f6211a9d8c3f1e7502c8e2
tree6b0409b97043ca6cb56a5524e6a7d3eb737b8261
parent2797f8a41636211f97f3b7bbfe993e8d3dd1e870
xfs_repair: metadata dirs are never plausible root dirs

Metadata directories are never candidates to be the root of the
user-accessible directory tree.  Update has_plausible_rootdir to ignore
them all, as well as detecting the case where the superblock incorrectly
thinks both trees have the same root.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
repair/xfs_repair.c