Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
io_uring: Add .errdetails to parse CQ status
Background - fio normally prints out the strerr and errno value when facing errors. In case of io_uring_cmd ioengine with --cmd_type=nvme, io_u->error represents the CQ entry status code type and status code which should be parsed as a NVMe error value rather than errno. In io_u error failure condition, it prints out parsed CQ entry error status values with SCT(Status Code Type) and SC(Status Code). The print will be like the following example: fio: io_uring_cmd: /dev/ng0n1: cq entry status (sct=0x00; sc=0x04) For the further use cases of --cmd_type!=nvme, this patch checks the given io_u's file is NVMe generic device or not. If not, it prints out generic status code like below: fio: io_uring_cmd: /dev/<devnode>: status=0x4 Signed-off-by: Minwoo Im <[email protected]>
- Loading branch information