use enum error_type_bit for ignore_error index
authorTomohiro Kusumi <tkusumi@tuxera.com>
Wed, 7 Jun 2017 20:18:47 +0000 (23:18 +0300)
committerJens Axboe <axboe@fb.com>
Wed, 7 Jun 2017 20:23:26 +0000 (14:23 -0600)
Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
options.c
td_error.h

index 4214f2451da826505a3f125f3ee9b8c6d2f8efd2..6d799bfe0e67871f5b3345148f0cc525a5624916 100644 (file)
--- a/options.c
+++ b/options.c
@@ -270,7 +270,8 @@ static int str2error(char *str)
        return 0;
 }
 
        return 0;
 }
 
-static int ignore_error_type(struct thread_data *td, int etype, char *str)
+static int ignore_error_type(struct thread_data *td, enum error_type_bit etype,
+                               char *str)
 {
        unsigned int i;
        int *error;
 {
        unsigned int i;
        int *error;
@@ -331,7 +332,8 @@ static int str_ignore_error_cb(void *data, const char *input)
 {
        struct thread_data *td = cb_data_to_td(data);
        char *str, *p, *n;
 {
        struct thread_data *td = cb_data_to_td(data);
        char *str, *p, *n;
-       int type = 0, ret = 1;
+       int ret = 1;
+       enum error_type_bit type = 0;
 
        if (parse_dryrun())
                return 0;
 
        if (parse_dryrun())
                return 0;
index 113398987553e6f75903877c380d5e3b02300a03..1b38a5349ffc727019364f3490ff37171a03880e 100644 (file)
@@ -2,7 +2,8 @@
 #define FIO_TD_ERROR_H
 
 /*
 #define FIO_TD_ERROR_H
 
 /*
- * What type of errors to continue on when continue_on_error is used
+ * What type of errors to continue on when continue_on_error is used,
+ * and what type of errors to ignore when ignore_error is used.
  */
 enum error_type_bit {
        ERROR_TYPE_READ_BIT = 0,
  */
 enum error_type_bit {
        ERROR_TYPE_READ_BIT = 0,