pingqiuandClaude Opus 5.5 8ecbc96f8b ublk: kernel ublk server (io_uring command queues) and provider target
- uapi.go: the ublk_cmd.h ABI (ctrl/dev-info/io-desc/io-cmd/params
  structs, ioctl-encoded command numbers), checked byte for byte by
  uapi_test.go against the kernel header.
- uring_linux.go: a minimal io_uring (SQE128 for URING_CMD), NOP-tested.
- device_linux.go: ADD_DEV (UBLK_F_CMD_IOCTL_ENCODE), SET_PARAMS (basic:
  block size, volatile cache + FUA so the block layer sends FLUSH/FUA),
  per-queue descriptor mmap and FETCH for every tag, START_DEV; each
  queue is served on one locked OS thread (ublk binds a queue to the task
  that fetched it) through the request dispatch. Close: STOP_DEV, wait
  for the queues, DEL_DEV. A device left at the same id by a dead server
  is deleted first; without UBLK_F_USER_RECOVERY a server crash fails
  I/O (documented fail-closed limit).
- target.go: TargetConfig/Target opening the volume backend from a
  frontend.Provider on first I/O, like the NVMe-RDMA target.
- device_unsupported.go: Start refuses off Linux.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:08:39 -08:00
Languages
Go 84.5%
Rust 7.9%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%