]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
xfs/509: adjust inumbers accounting for metadata directories
authorDarrick J. Wong <djwong@kernel.org>
Thu, 21 Nov 2024 00:27:22 +0000 (16:27 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 23 Jan 2025 21:19:55 +0000 (13:19 -0800)
commit5526ace268b80ab4d088d0742e296f5d13ba4085
treed08c2f0de8188d81deabd04d77085544f5fd40f3
parent254c4061876dcf685b61e7265693923e1007f2cc
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