]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: require zeroed quota/rt inodes in metadir superblocks
authorDarrick J. Wong <djwong@kernel.org>
Wed, 29 Jan 2025 00:48:26 +0000 (16:48 -0800)
committerAndrey Albershteyn <aalbersh@kernel.org>
Wed, 29 Jan 2025 09:33:07 +0000 (10:33 +0100)
commitca10888d51a51ccb8ef02c9182c554eee4493aac
tree86547856f922a853ab258e55faedce926a9b66e1
parentc988ff56258abf338bf0403323cfe0a4d173de3a
xfs_repair: require zeroed quota/rt inodes in metadir superblocks

If metadata directory trees are enabled, the superblock inode pointers
to quota and rt free space metadata must all be zero.  The only inode
pointers in the superblock are sb_rootino and sb_metadirino.

Found by running xfs/418.

Fixes: b790ab2a303d58 ("xfs_repair: support quota inodes in the metadata directory")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
repair/agheader.c