Skip to content

Fix Btrfs tests to work on non-4k block sized fs instances

Chandan Rajendra fstests linux-btrfs 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 5 repliesIn review
  2. v18 patches 8 repliesSuperseded

Changes in v2 from the cover letter

1. Remove faulty patches which incorrectly compared a file's md5sum output before and after performing file operations instead of echoing it to stdout.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Filter xfs_io and od's output in units of FS block sizecommon/filter+45 -01 reply
2/5Fix btrfs/017 to work on non-4k block sized filesystemstests/btrfs/017 tests/btrfs/017.out+13 -61 reply
3/5Fix btrfs/055 to work on non-4k block sized filesystemstests/btrfs/055 tests/btrfs/055.out+259 -2471 reply
4/5Fix btrfs/056 to work on non-4k block sized filesystemstests/btrfs/056 tests/btrfs/056.out+90 -1131 reply
5/5Fix btrfs/096 to work on non-4k block sized filesystemstests/btrfs/096 tests/btrfs/096.out+30 -301 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchFilipe Manana
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH V2 0/5] Fix Btrfs tests to work on non-4k block sized fs instances

This patchset fixes Btrfs tests to work on variable block size. This is based off the RFC patch sent during March of this year
(https://www.marc.info/?l=linux-btrfs&m=142736088310300&w=2).

Currently, some of the tests are written with the assumption that 4k is the block size of the filesystem instance. On architectures (e.g. ppc64) with a larger page size (and hence larger block size), these tests fail because the block bondaries assumed by the the tests are no longer true.

To fix the issue, This patchset adds two new filter functions:
1. _filter_xfs_io_blocks_modified
2. _filter_od

Changes from V1:
1. Remove faulty patches which incorrectly compared a file's md5sum output before and after performing file operations instead of echoing it to stdout.

Chandan Rajendra (5):
Filter xfs_io and od's output in units of FS block size Fix btrfs/017 to work on non-4k block sized filesystems Fix btrfs/055 to work on non-4k block sized filesystems Fix btrfs/056 to work on non-4k block sized filesystems Fix btrfs/096 to work on non-4k block sized filesystems

 common/filter       |  45 +++++++
 tests/btrfs/017     |  16 ++-
 tests/btrfs/017.out |   3 +-
 tests/btrfs/055     | 128 ++++++++++--------
 tests/btrfs/055.out | 378 +++++++++++++++++++++++++---------------------------
 tests/btrfs/056     |  51 ++++---
 tests/btrfs/056.out | 152 +++++++++------------
 tests/btrfs/096     |  45 ++++---
 tests/btrfs/096.out |  15 +--
 9 files changed, 437 insertions(+), 396 deletions(-)
Signature · 1 line
2.1.0