mbox series

[v5,0/3] xfs: testcases for shrinking free space in the last AG

Message ID 20210511073945.906127-1-hsiangkao@redhat.com (mailing list archive)
Headers show
Series xfs: testcases for shrinking free space in the last AG | expand

Message

Gao Xiang May 11, 2021, 7:39 a.m. UTC
Hi,

This adds testcases for shrinking free space in the last AG in the upstream.
This version mainly addresses Darrick's previous comments.
(and I've checked with "512m logdev with USE_EXTERNAL and SCRATCH_LOGDEV
 without issues)

changes since v4 (Darrick):
 - [1/3] check xfs_growfs output instead;
 - [2/3] fix a typo;
 - [2/3] echo statements rather than fail out;
 - [3/3] avoid unncessary scale due to _scale_fsstress_args;
 - [3/3] inject a bit randomness to decsize;
 - [3/3] use '_scratch_xfs_repair -n' instead.

Thanks,
Gao Xiang

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        |  20 ++++++++
 tests/xfs/990     |  73 ++++++++++++++++++++++++++++
 tests/xfs/990.out |  12 +++++
 tests/xfs/991     | 120 ++++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/991.out |   8 ++++
 tests/xfs/group   |   2 +
 6 files changed, 235 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