diff options
| author | Caleb Sander Mateos <csander@purestorage.com> | 2025-12-12 10:17:06 -0700 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-12-12 12:50:41 -0700 |
| commit | b9f0a94c3b2e7deaff93e4c4de335e3054223ff4 (patch) | |
| tree | 629b1309237da7b6786e836b7f42f6c0cb5d5c5c /scripts/objdiff | |
| parent | 52bc483763262b66e51818a82e03cad0c5bfef67 (diff) | |
selftests: ublk: add support for user copy to kublk
The ublk selftests mock ublk server kublk supports every data copy mode
except user copy. Add support for user copy to kublk, enabled via the
--user_copy (-u) command line argument. On writes, issue pread() calls
to copy the write data into the ublk_io's buffer before dispatching the
write to the target implementation. On reads, issue pwrite() calls to
copy read data from the ublk_io's buffer before committing the request.
Copy in 2 KB chunks to provide some coverage of the offseting logic.
Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
