Skip to content

blktests: Add ublk testcases

Ziyang Zhang linux-block 3 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 3 repliesApplied
  2. v22 patches 7 repliesSuperseded
  3. v12 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- run "make check" to avoid warnings
- cleanup code
- just choose ext4 to make ublk/003 more reliable

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2src/miniublk: add user recoverysrc/miniublk.c+254 -151 reply
2/2tests: Add ublk testscommon/ublk tests/ublk/001 tests/ublk/001.out +11 more+406 -11 reply

Reviews trailers per patch

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

PatchMing Lei
1/2R-b
2/2R-b

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

Read the v3 thread

Cover letter [PATCH V3 blktests 0/2] blktests: Add ublk testcases

Hi,

ublk can passthrough I/O requests to userspce daemons. It is very important to test ublk crash handling since the userspace part is not reliable. Especially we should test removing device, killing ublk daemons and user recovery feature.

The first patch add user recovery support in miniublk.

The second patch add five new tests for ublk to cover above cases.

V3:
- run "make check" to avoid warnings
- cleanup code
- just choose ext4 to make ublk/003 more reliable

V2:
- Check parameters in recovery
- Add one small delay before deleting device
- Write informative description

Ziyang Zhang (2):
src/miniublk: add user recovery
tests: Add ublk tests
Ziyang Zhang (2):
src/miniublk: add user recovery
tests: Add ublk tests

 common/ublk        |  10 +-
 src/miniublk.c     | 269 ++++++++++++++++++++++++++++++++++++++++++---
 tests/ublk/001     |  47 ++++++++
 tests/ublk/001.out |   2 +
 tests/ublk/002     |  62 +++++++++++
 tests/ublk/002.out |   2 +
 tests/ublk/003     |  52 +++++++++
 tests/ublk/003.out |   2 +
 tests/ublk/004     |  49 +++++++++
 tests/ublk/004.out |   2 +
 tests/ublk/005     |  77 +++++++++++++
 tests/ublk/005.out |   2 +
 tests/ublk/006     |  81 ++++++++++++++
 tests/ublk/006.out |   2 +
 tests/ublk/rc      |  17 +++
 15 files changed, 660 insertions(+), 16 deletions(-)
 create mode 100755 tests/ublk/001
 create mode 100644 tests/ublk/001.out
 create mode 100755 tests/ublk/002
 create mode 100644 tests/ublk/002.out
 create mode 100755 tests/ublk/003
 create mode 100644 tests/ublk/003.out
 create mode 100755 tests/ublk/004
 create mode 100644 tests/ublk/004.out
 create mode 100755 tests/ublk/005
 create mode 100644 tests/ublk/005.out
 create mode 100755 tests/ublk/006
 create mode 100644 tests/ublk/006.out
 create mode 100644 tests/ublk/rc
Signature · 1 line
2.31.1