| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2026-11-04 | selftests: ublk: fix the build and file offsets on 32-bit | Sasha Levin | |
| kublk puts pointers into 64-bit UAPI and SQE fields with a plain (__u64) cast. ublk builds with -Werror, so it fails to build on 32-bit architectures: batch.c:379:42: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] Cast through uintptr_t. kublk also passes 64-bit user copy offsets, which start at UBLKSRV_IO_BUF_OFFSET (2 GB), to pread() and pwrite(), and with glibc those are truncated to a 32-bit off_t there. Build with -D_FILE_OFFSET_BITS=64 as well. Signed-off-by: Sasha Levin <sashal@kernel.org> Reviewed-by: Ming Lei <tom.leiming@gmail.com> Link: https://patch.msgid.link/20261103163928.641519-1-sashal@kernel.org Signed-off-by: Jens Axboe <axboe@kernel.dk> | |||
| 2026-10-15 | selftests: ublk: move the control command helpers into ctrl.c | Ming Lei | |
| Move the ublk_ctrl_*() helpers and ublk_setup_ring() out of kublk.c, so a small test program can send control commands without copying them. kublk still links every *.c file, ctrl.c included. ublk_ctrl_deinit() now also exits the control ring, and ublk_ctrl_init() checks the allocation and closes /dev/ublk-control when the ring setup fails. kublk calls them only around its own lifetime, but a test which opens a control handle per thread must not leak. No functional change for kublk. Signed-off-by: Ming Lei <tom.leiming@gmail.com> Tested-by: Josef Bacik <josef@toxicpanda.com> Link: https://patch.msgid.link/20261011063555.1142277-10-tom.leiming@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk> | |||
