Commit | Line | Data |
---|---|---|
3c978125 JA |
1 | #ifndef FIO_TD_ERROR_H |
2 | #define FIO_TD_ERROR_H | |
3 | ||
4 | /* | |
3ed673c6 TK |
5 | * What type of errors to continue on when continue_on_error is used, |
6 | * and what type of errors to ignore when ignore_error is used. | |
3c978125 JA |
7 | */ |
8 | enum error_type_bit { | |
9 | ERROR_TYPE_READ_BIT = 0, | |
10 | ERROR_TYPE_WRITE_BIT = 1, | |
11 | ERROR_TYPE_VERIFY_BIT = 2, | |
12 | ERROR_TYPE_CNT = 3, | |
13 | }; | |
14 | ||
15 | enum error_type { | |
16 | ERROR_TYPE_NONE = 0, | |
17 | ERROR_TYPE_READ = 1 << ERROR_TYPE_READ_BIT, | |
18 | ERROR_TYPE_WRITE = 1 << ERROR_TYPE_WRITE_BIT, | |
19 | ERROR_TYPE_VERIFY = 1 << ERROR_TYPE_VERIFY_BIT, | |
20 | ERROR_TYPE_ANY = 0xffff, | |
21 | }; | |
22 | ||
23 | enum error_type_bit td_error_type(enum fio_ddir ddir, int err); | |
24 | int td_non_fatal_error(struct thread_data *td, enum error_type_bit etype, | |
25 | int err); | |
26 | void update_error_count(struct thread_data *td, int err); | |
27 | ||
28 | #endif |