[PATCH v2 0/5] xfstests: generic swap file tests

Omar Sandoval
2018-05-16T20:38:55Z

Changes since v1:

- Add patch 1 to create a group for swap
- Add a helper for formatting a swap file instead of open coding
everywhere
- Use $CHATTR_PROG instead of chattr in a few places that I forgot

Thanks!

Omar Sandoval (5):
xfstests: create swap group
generic: enable swapfile tests on Btrfs
generic: add test for dedupe on an active swapfile
generic: add test for truncate/fpunch of an active swapfile
generic: test invalid swap file activation

.gitignore | 2 ++
common/rc | 15 ++++++--
src/Makefile | 2 +-
src/mkswap.c | 83 +++++++++++++++++++++++++++++++++++++++++++
src/swapon.c | 24 +++++++++++++
tests/generic/356 | 7 ++--
tests/generic/357 | 6 ++--
tests/generic/488 | 76 +++++++++++++++++++++++++++++++++++++++
tests/generic/488.out | 7 ++++
tests/generic/489 | 73 +++++++++++++++++++++++++++++++++++++
tests/generic/489.out | 8 +++++
tests/generic/490 | 77 +++++++++++++++++++++++++++++++++++++++
tests/generic/490.out | 5 +++
tests/generic/group | 7 ++--
tests/xfs/group | 2 +-
15 files changed, 381 insertions(+), 13 deletions(-)
create mode 100644 src/mkswap.c
create mode 100644 src/swapon.c
create mode 100755 tests/generic/488
create mode 100644 tests/generic/488.out
create mode 100755 tests/generic/489
create mode 100644 tests/generic/489.out
create mode 100755 tests/generic/490
create mode 100644 tests/generic/490.out

--
2.17.0