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 -- 2.31.1