xfstests: Fix generic/643 on ext2 and ext3
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 3 repliesIn review
- v12 patches 6 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | common/rc: Enable _format_swapfile to return the swap sizecommon/ tests/ tests/ +9 more | +19 | 0 replies | |
| 2/2 | generic/643: Fix for 1k block sizes for ext2 and ext3tests/ | +9 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH V2 0/2] xfstests: Fix generic/643 on ext2 and ext3
Hello.
This is the 2nd version of this series to fix test g/643.
This version ensures _format_swapfile helper returns the swap size in bytes every time (previous version returned it in a different unit, depending on the swap's size) and updates remaining users of _format_swapfile() to discard its return value.
This also slightly change patch 2, making g/643 to use swapon to retrieve swap size (more details in the patch's description).
Original cover-letter below.
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/btrfs/173 | 2 +- tests/btrfs/174 | 2 +- tests/btrfs/175 | 4 ++-- tests/btrfs/176 | 2 +- tests/btrfs/177 | 2 +- tests/generic/356 | 2 +- tests/generic/357 | 2 +- tests/generic/493 | 2 +- tests/generic/494 | 2 +- tests/generic/554 | 2 +- tests/generic/569 | 2 +- tests/generic/643 | 27 +++++++++------------------ 13 files changed, 28 insertions(+), 33 deletions(-)
Signature · 1 line
2.31.1