options: Add support hex value to ignore_error
authorMinwoo Im <minwoo.im@samsung.com>
Wed, 15 May 2024 05:46:04 +0000 (14:46 +0900)
committerMinwoo Im <minwoo.im@samsung.com>
Wed, 15 May 2024 05:46:04 +0000 (14:46 +0900)
commitf26af3ddd7becec1b296a67a4b80cf7d19e19928
treeabacc4701f6dd8f047df41b42643ab66c1be5396
parent78831c6b35c53f844748e79711b99218fb58f928
options: Add support hex value to ignore_error

The 'ignore_error=str' option expects either the name or the numeric
value of the errno in string format.  With recent additions like
io_uring_cmd ioengine, it's been possible to check not only errno values
but also the actual status values provided by the storage device.

Given that most status codes in NVMe specs are represented in
hexadecimal, specifying error values in hexadecimal is also useful to
ignore some errors.

For example, DULBE (Deallocated or Unwritten Logical Block Error) status
code can be ignored:

ignore_error=0x287

Signed-off-by: Minwoo Im <minwoo.im@samsung.com>
options.c