Skip to content

fstests: add tests for btrfs' raid-stripe-tree feature

Anand Jain fstests linux-btrfs 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest10 patches 0 repliesNew
  2. v710 patches 7 repliesSuperseded

Changes in v8 from the cover letter

- The RAID stripe tree dump filter has been updated; now, it also handles trailing whitespace and version filtering.
- Patches re-ordered.
- Link to v7: https://lore.kernel.org/all/[email protected]

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10fstests: doc: add new raid-stripe-tree groupdoc/group-names.txt+1 -00 replies
2/10common: add _require_btrfs_no_nodatacow helpercommon/btrfs+7 -00 replies
3/10common: add _require_btrfs_free_space_treecommon/btrfs+10 -00 replies
4/10common: add _filter_trailing_whitespacecommon/filter+5 -00 replies
5/10common: add filter for btrfs raid-stripe dumpcommon/filter.btrfs+15 -00 replies
6/10btrfs: add fstest for stripe-tree metadata with 4k writetests/btrfs/304 tests/btrfs/304.out+116 -00 replies
7/10btrfs: add fstest for 8k write spanning two stripes on raid-stripe-treetests/btrfs/305 tests/btrfs/305.out+145 -00 replies
8/10btrfs: add fstest for writing to a file at an offset with RSTtests/btrfs/306 tests/btrfs/306.out+136 -00 replies
9/10btrfs: add fstests to write 128k to a RST filesystemtests/btrfs/307 tests/btrfs/307.out+123 -00 replies
10/10btrfs: add fstest for overwriting a file partially with RSTtests/btrfs/308 tests/btrfs/308.out+168 -00 replies

Reviews trailers per patch

9 of 10 patches have a Reviewed-by or Acked-by.

PatchFilipe MananaAnand Jain
1/10R-b R-b
2/10R-b R-b
3/10R-b R-b
4/10
5/10R-b R-b
6/10R-b R-b
7/10R-b R-b
8/10R-b R-b
9/10R-b R-b
10/10R-b R-b

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

Read the v8 thread

Cover letter [PATCH v8 0/10] fstests: add tests for btrfs' raid-stripe-tree feature

Changes in v8:
- The RAID stripe tree dump filter has been updated; now, it also handles trailing whitespace and version filtering.
- Patches re-ordered.
- Link to v7: https://lore.kernel.org/all/[email protected]

Changes in v7:
- Fixed trailing whitespace in the .out files
- Fixed the following test statement in 30[4-8]:

     test _get_page_size -eq 4096

- Link to v6: https://lore.kernel.org/r/[email protected]

--- original cover page from Johannes ----
Add tests for btrfs' raid-stripe-tree feature. All of these test work by writing a specific pattern to a newly created filesystem and afterwards using btrfs inspect-internal -t raid-stripe $SCRATCH_DEV_POOL to verify the placement and the layout of the metadata.

The md5sum of each file will be compared as well after a re-mount of the filesystem.

---
Changes in v6:
- require 4k pagesize for all tests as output depends on page size
- Add Filipe's Reviewed-by
- Link to v5: https://lore.kernel.org/r/[email protected]

Changes in v5:
- add _require_btrfs_free_space_tree helper and use in tests
- Link to v4: https://lore.kernel.org/r/[email protected]

Changes in v4:
- add _require_btrfs_no_compress to all tests
- add _require_btrfs_no_nodatacow helper and add to btrfs/308
- add _require_btrfs_feature "free_space_tree" to all tests
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- added 'raid-stripe-tree' to mkfs options, as only zoned raid gets it automatically
- Rename test cases as btrfs/302 and btrfs/303 already exist upstream
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Re-ordered series so the newly introduced group is added before the tests
- Changes Filipe requested to the tests.
- Link to v1: https://lore.kernel.org/r/[email protected]

Subject: [PATCH v8 00/10] *** SUBJECT HERE ***

*** BLURB HERE ***

Anand Jain (1):
common: add _filter_trailing_whitespace

Johannes Thumshirn (9):
fstests: doc: add new raid-stripe-tree group
common: add _require_btrfs_no_nodatacow helper
common: add _require_btrfs_free_space_tree
common: add filter for btrfs raid-stripe dump
btrfs: add fstest for stripe-tree metadata with 4k write
btrfs: add fstest for 8k write spanning two stripes on
raid-stripe-tree
btrfs: add fstest for writing to a file at an offset with RST
btrfs: add fstests to write 128k to a RST filesystem
btrfs: add fstest for overwriting a file partially with RST

 common/btrfs        |  17 +++++++
 common/filter       |   5 +++
 common/filter.btrfs |  15 +++++++
 doc/group-names.txt |   1 +
 tests/btrfs/304     |  58 ++++++++++++++++++++++++
 tests/btrfs/304.out |  58 ++++++++++++++++++++++++
 tests/btrfs/305     |  63 ++++++++++++++++++++++++++
 tests/btrfs/305.out |  82 ++++++++++++++++++++++++++++++++++
 tests/btrfs/306     |  61 +++++++++++++++++++++++++
 tests/btrfs/306.out |  75 +++++++++++++++++++++++++++++++
 tests/btrfs/307     |  58 ++++++++++++++++++++++++
 tests/btrfs/307.out |  65 +++++++++++++++++++++++++++
 tests/btrfs/308     |  62 ++++++++++++++++++++++++++
 tests/btrfs/308.out | 106 ++++++++++++++++++++++++++++++++++++++++++++
 14 files changed, 726 insertions(+)
 create mode 100755 tests/btrfs/304
 create mode 100644 tests/btrfs/304.out
 create mode 100755 tests/btrfs/305
 create mode 100644 tests/btrfs/305.out
 create mode 100755 tests/btrfs/306
 create mode 100644 tests/btrfs/306.out
 create mode 100755 tests/btrfs/307
 create mode 100644 tests/btrfs/307.out
 create mode 100755 tests/btrfs/308
 create mode 100644 tests/btrfs/308.out
Signature · 1 line
2.38.1