]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
xfs/509: adjust inumbers accounting for metadata directories
authorDarrick J. Wong <djwong@kernel.org>
Tue, 6 Feb 2024 00:06:39 +0000 (16:06 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 1 Nov 2024 20:41:57 +0000 (13:41 -0700)
commit9b598437bda132edf967d08f476ffdfb1ee32555
tree1ccb0f22099409094b704951b90ba0c9f6220b3e
parent98c8c2b1f41a5b47509f265f123ca4de267f35e4
xfs/509: adjust inumbers accounting for metadata directories

The INUMBERS ioctl exports data from the inode btree directly -- the
number of inodes it reports is taken from ir_freemask and includes all
the files in the metadata directory tree.  BULKSTAT, on the other hand,
only reports non-metadata files.  When metadir is enabled, this will
(eventually) cause a discrepancy in the inode counts that is large
enough to exceed the tolerances, thereby causing a test failure.

Correct this by counting the files in the metadata directory and
subtracting that from the INUMBERS totals.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
tests/xfs/509