mbox series

[0/2] xfstests: Fix generic/643 on ext2 and ext3

Message ID 20211102152828.26895-1-cmaiolino@redhat.com (mailing list archive)
Headers show
Series xfstests: Fix generic/643 on ext2 and ext3 | expand

Message

Carlos Maiolino Nov. 2, 2021, 3:28 p.m. UTC
Currently, generic/643 test fails on ext2 and ext3 filesystems when using 1k
block sizes.
The failure itself happens due the mapping of indirect blocks to iomap extents
and the aligment constraints imposed by iomap. Specific details are described in
patch 2.

To fix the test, I modified it to use the swapfile size described in the swap
header (patch 2), and to retrieve such information, at mkswap time, I modified
the _format_swapfile() function, and I believe such modification requires its own
patch (patch 1).

These changes have also been tested on 64k pages (both on arm and PPC) to ensure
it doesn't break the test on such architectures.

Carlos Maiolino (2):
  common/rc: Enable _format_swapfile to return the swap size
  generic/643: Fix for 1k block sizes for ext2 and ext3

 common/rc         | 10 +++++++---
 tests/generic/643 | 27 +++++++++------------------
 2 files changed, 16 insertions(+), 21 deletions(-)