io_uring: Support Compare command for verification
authorMinwoo Im <minwoo.im.dev@gmail.com>
Thu, 26 Sep 2024 01:08:02 +0000 (10:08 +0900)
committerJens Axboe <axboe@kernel.dk>
Thu, 26 Sep 2024 17:32:50 +0000 (11:32 -0600)
commit6170d92a61da1a0e196352cc68888168c931edcd
tree7ca67f8edf5e0ed4c7d78f7a54c52e0bf7db4066
parentebe67b667f25694ead4caa0198598318f891b345
io_uring: Support Compare command for verification

Added 'verify_mode' option to io_uring_cmd with --cmd_type=nvme to
support data compare verification with Compare commands rather than Read
commands.  This patch newly added IO_U_F_VER_IN_DEV io_u flag to
represent that verification should be done in device side, not the host
side to skip the actual verification phase in verify_io_u().

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Link: https://lore.kernel.org/r/20240926010802.27131-1-minwoo.im.dev@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/io_uring.c
engines/nvme.c
engines/nvme.h
fio.1
io_u.h
verify.c