Skip to content

bcache: add initial test cases

Daniel Wagner linux-bcache linux-block 5 versions – In review

Get series with b4
b4 am [email protected] change-id 20260120-bcache-35ec7368c8f4

Versions newest first

  1. v5 Latest3 patches 12 repliesIn review
  2. v43 patches 6 repliesSuperseded
  3. v33 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v22 patches4 repliesSuperseded
v11 patch6 repliesSuperseded

Changes in v4 from the cover letter

- changed file mode to 755 for 001 and 002
- changed license to GPL-3.0+
- use group_requires
- fixed whitespace damage
- dropped unnecessary '|| true'
- added 'local' for local variables
- added wait loop for register interface to show up
- updated documentation
- Link to v3: https://patch.msgid.link/[email protected]

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bcache: add bcache/001tests/bcache/001 tests/bcache/001.out tests/bcache/rc+424 -03 replies
2/3bcache: add bcache/002tests/bcache/002 tests/bcache/002.out+80 -06 replies
3/3doc: document how to configure bcache testsDocumentation/running-tests.md+10 -01 reply

Reviews trailers per patch

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

PatchJohannes Thumshirn
1/3R-b
2/3R-b
3/3R-b

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

Read the v5 thread

Cover letter [PATCH blktests v5 0/3] bcache: add initial test cases

I've addressed all comments from Shinichiro.

bcache/002 is not using iostat anymore, instead it reads directly from sysfs. Also updated this tests according Stephen's feedback. I didn't test yet with an older version.

Unfortunatly, I was not able to reproduce the "nvme?n1" file in my setup with:

TEST_CASE_DEV_ARRAY[bcache/*]="/dev/nvme0n1 /dev/vdb /dev/vdc" TEST_CASE_DEV_ARRAY[bcache/*]="/dev/nvme0n1 /dev/vdb /dev/vdc /dev/nvme1n1"

Not sure where this is coming from.

Cheers,
Daniel

Cc Christoph Hellwig <[email protected]>
Cc Stephen Zhang <[email protected]>
Cc Kent Overstreet <[email protected]>
Cc Coly Li <[email protected]>
Cc Shin'ichiro Kawasaki <[email protected]>
Cc Johannes Thumshirn <[email protected]>

--- Changes in v5:
- Addressed all comments from Shinichiro
- Updated bcache/002 according Stepen's feedback, though reduced fio's runtime to 10s
- Link to v4: https://patch.msgid.link/[email protected]

Changes in v4:
- changed file mode to 755 for 001 and 002
- changed license to GPL-3.0+
- use group_requires
- fixed whitespace damage
- dropped unnecessary '|| true'
- added 'local' for local variables
- added wait loop for register interface to show up
- updated documentation
- Link to v3: https://patch.msgid.link/[email protected]

Changes in v3:
- add bcache/002
- return created bcache devices to tests case
- made cleanup more robust (handling detached cache)
- track all resources correctly
- operatoe only in final cleanup on known devices
- Link to v2: https://patch.msgid.link/[email protected]

Changes in v2:
- fixed whitespace damage
- added documentation on how to configure for bcache tests
- do registering explicitly
- made disk wiping more robust
- Link to v1: https://patch.msgid.link/[email protected]

---
Daniel Wagner (3):
bcache: add bcache/001
bcache: add bcache/002
doc: document how to configure bcache tests

 Documentation/running-tests.md |  10 ++
 tests/bcache/001               |  44 +++++
 tests/bcache/001.out           |   3 +
 tests/bcache/002               |  78 +++++++++
 tests/bcache/002.out           |   2 +
 tests/bcache/rc                | 377 +++++++++++++++++++++++++++++++++++++++++
 6 files changed, 514 insertions(+)

---
base-commit: e387a7e0169cc012eb6a7140a0561d2901c92a76
change-id: 20260120-bcache-35ec7368c8f4

Best regards,

Signature · 1 line
Daniel Wagner <[email protected]>