Skip to content

Commit 90c3006

Browse files
committed
options: add supoprt negative errno to --ignore_error
Some of ioengines (e.g., io_uring_cmd) returns negative errno to represent system error as negative errno instead of positive values for NVMe-specific error status. To masking expected situations with --ignore_error= option, added support for negative value of errno syntax. Signed-off-by: Minwoo Im <[email protected]>
1 parent aedfb32 commit 90c3006

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

options.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,8 @@ static int ignore_error_type(struct thread_data *td, enum error_type_bit etype,
592592
}
593593
if (fname[0] == 'E') {
594594
error[i] = str2error(fname);
595+
} else if (fname[0] == '-' && fname[1] == 'E') {
596+
error[i] = -str2error(fname + 1);
595597
} else {
596598
int base = 10;
597599
if (!strncmp(fname, "0x", 2) ||

0 commit comments

Comments
 (0)