Hi, Sorry for little delay (yet since xfsprogs side isn't merged, and no major changes compared with the previous version...) This version matches kernel: for-next xfsprogs: https://lore.kernel.org/r/20210326024631.12921-1-hsiangkao@xxxxxxx and mainly addresses comments for the previous version (but note I don't tend to dump shrink information but rather confirm the final state runtimely, since blocksize needs to be fixed and output could change by time, so just need to confirm xfs_repair can pass and final dblocks is what we want.) Thanks, Gao Xinag changes since RFC v3 (Eryu): - [1/3] rename to _require_xfs_scratch_shrink; - [1/3] add growfs command check; - [1/3] try to shrink 1 dblock to check kernel support instead; - [2/3] use _check_scratch_fs instead; - [2/3] add comment on why agcount=3; - [2/3] add shrinkfs group; - [3/3] use _scratch_mount; - [3/3] Declare variables in stress_scratch() as local; - [3/3] run stress_scratch() in background; Gao Xiang (3): common/xfs: add _require_xfs_scratch_shrink helper xfs: basic functionality test for shrinking free space in the last AG xfs: stress test for shrinking free space in the last AG common/xfs | 14 ++++++ tests/xfs/990 | 73 ++++++++++++++++++++++++++++ tests/xfs/990.out | 12 +++++ tests/xfs/991 | 118 ++++++++++++++++++++++++++++++++++++++++++++++ tests/xfs/991.out | 8 ++++ tests/xfs/group | 2 + 6 files changed, 227 insertions(+) create mode 100755 tests/xfs/990 create mode 100644 tests/xfs/990.out create mode 100755 tests/xfs/991 create mode 100644 tests/xfs/991.out -- 2.27.0