[PATCH 0/4] erofs-utils: add ublk backend for mount.erofs
Chengyu
hudson at cyzhu.com
Mon Mar 16 01:27:41 AEDT 2026
This series adds ublk (userspace block device) support to mount.erofs
as an alternative to the existing nbd backend.
Patches 1-2 refactor mount/main.c: rename nbd-specific types to
generic names and extract reusable source-opening / recovery helpers.
Patch 3 adds the core ublk backend library with per-queue threading,
device recovery, and signal-safe teardown.
Patch 4 integrates ublk into mount.erofs (-t erofs.ublk, --reattach,
unmount).
Chengyu Zhu (4):
erofs-utils: mount: generalize nbd source types for multi-backend
support
erofs-utils: mount: extract reusable source-opening and recovery
helpers
erofs-utils: add ublk userspace block device backend
erofs-utils: mount: integrate ublk backend
configure.ac | 34 +
lib/Makefile.am | 9 +-
lib/backends/ublk.c | 1429 +++++++++++++++++++++++++++++++++++++++++++
lib/liberofs_ublk.h | 53 ++
mount/main.c | 506 ++++++++++-----
5 files changed, 1885 insertions(+), 146 deletions(-)
create mode 100644 lib/backends/ublk.c
create mode 100644 lib/liberofs_ublk.h
--
2.47.1
More information about the Linux-erofs
mailing list