Skip to content

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

Chandan Rajendra fstests linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12Filter xfs_io and od's output in units of FS block size and the CPU's page sizecommon/filter common/rc+57 -00 replies
2/12Fix btrfs/017 to work on non-4k block sized filesystemstests/btrfs/017 tests/btrfs/017.out+13 -60 replies
3/12Fix btrfs/052 to work on non-4k block sized filesystemstests/btrfs/052 tests/btrfs/052.out+323 -3500 replies
4/12Fix btrfs/055 to work on non-4k block sized filesystemstests/btrfs/055 tests/btrfs/055.out+259 -2470 replies
5/12Fix btrfs/056 to work on non-4k block sized filesystemstests/btrfs/056 tests/btrfs/056.out+90 -1130 replies
6/12Fix btrfs/094 to work on non-4k block sized filesystemstests/btrfs/094 tests/btrfs/094.out+49 -464 replies
7/12Fix btrfs/095 to work on non-4k block sized filesystemstests/btrfs/095 tests/btrfs/095.out+66 -570 replies
8/12Fix btrfs/096 to work on non-4k block sized filesystemstests/btrfs/096 tests/btrfs/096.out+30 -300 replies
9/12Fix btrfs/097 to work on non-4k block sized filesystemstests/btrfs/097 tests/btrfs/097.out+26 -230 replies
10/12Fix btrfs/098 to work on non-4k block sized filesystemstests/btrfs/098 tests/btrfs/098.out+38 -340 replies
11/12Fix btrfs/103 to work on non-4k block sized filesystemstests/btrfs/103 tests/btrfs/103.out+41 -540 replies
12/12Fix btrfs/106 to work on non-4k block sized filesystemstests/btrfs/106 tests/btrfs/106.out+26 -300 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/12] 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 and hence btrfs_ioctl_clone() (which requires a block aligned file offset range) returns -EINVAL.

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

P.S: Since the changes made are trivial, I could have clubbed all the patches into two patches. First patch introducing the new filtering functions and the second patch containing the changes to made to the tests. If this approach sounds right, I can post version V2 with the two patches containing the relevant changes.

Chandan Rajendra (12):
Filter xfs_io and od's output in units of FS block size and the CPU's
page size
Fix btrfs/017 to work on non-4k block sized filesystems Fix btrfs/052 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/094 to work on non-4k block sized filesystems Fix btrfs/095 to work on non-4k block sized filesystems Fix btrfs/096 to work on non-4k block sized filesystems Fix btrfs/097 to work on non-4k block sized filesystems Fix btrfs/098 to work on non-4k block sized filesystems Fix btrfs/103 to work on non-4k block sized filesystems Fix btrfs/106 to work on non-4k block sized filesystems

 common/filter       |  52 +++++
 common/rc           |   5 +
 tests/btrfs/017     |  16 +-
 tests/btrfs/017.out |   3 +-
 tests/btrfs/052     | 127 +++++++-----
 tests/btrfs/052.out | 546 +++++++++++++++++++++++-----------------------------
 tests/btrfs/055     | 128 +++++++-----
 tests/btrfs/055.out | 378 ++++++++++++++++++------------------
 tests/btrfs/056     |  51 +++--
 tests/btrfs/056.out | 152 ++++++---------
 tests/btrfs/094     |  78 +++++---
 tests/btrfs/094.out |  17 +-
 tests/btrfs/095     | 113 ++++++-----
 tests/btrfs/095.out |  10 +-
 tests/btrfs/096     |  45 +++--
 tests/btrfs/096.out |  15 +-
 tests/btrfs/097     |  42 ++--
 tests/btrfs/097.out |   7 +-
 tests/btrfs/098     |  65 ++++---
 tests/btrfs/098.out |   7 +-
 tests/btrfs/103     |  47 +++--
 tests/btrfs/103.out |  48 ++---
 tests/btrfs/106     |  42 ++--
 tests/btrfs/106.out |  14 +-
 24 files changed, 1018 insertions(+), 990 deletions(-)
Signature · 1 line
2.1.0