[PATCHSET v2 0/2] fstests: add inode btree blocks counters to the AGI header

Darrick J. Wong
2021-03-31T01:09:24Z

Hi all,

Years ago, Christoph diagnosed a problem where freeing an inode on a
totally full filesystem could fail due to finobt expansion not being
able to allocate enough blocks. He solved the problem by using the
per-AG block reservation system to ensure that there are always enough
blocks for finobt expansion, but that came at the cost of having to walk
the entire finobt at mount time. This new feature solves that
performance regression by adding inode btree block counts to the AGI
header. The patches in this series amend fstests to handle the new
metadata fields and to test that upgrades work properly.

v2: move the xfs_admin functional test into a separate patch file and
split them into one test for basic functionality and another for
the extended functionality testing that modifies the test run config

If you're going to start using this mess, you probably ought to just
pull from my git trees, which are linked below.

This is an extraordinary way to destroy everything. Enjoy!
Comments and questions are, as always, welcome.

--D

kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=inobt-counters

xfsprogs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=inobt-counters

fstests git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=inobt-counters
---
common/xfs | 21 ++++++++++
tests/xfs/764 | 91 ++++++++++++++++++++++++++++++++++++++++++
tests/xfs/764.out | 17 ++++++++
tests/xfs/773 | 114 +++++++++++++++++++++++++++++++++++++++++++++++++++++
tests/xfs/773.out | 19 +++++++++
tests/xfs/910 | 112 ++++++++++++++++++++++++++++++++++++++++++++++++++++
tests/xfs/910.out | 23 +++++++++++
tests/xfs/group | 3 +
8 files changed, 400 insertions(+)
create mode 100755 tests/xfs/764
create mode 100644 tests/xfs/764.out
create mode 100755 tests/xfs/773
create mode 100644 tests/xfs/773.out
create mode 100755 tests/xfs/910
create mode 100644 tests/xfs/910.out