Add 'null' verify option
[fio.git] / options.c
index 7d4396e81d1aa637748bd135c52e520c09beb7ca..5401f90339bf7da688b8e645656cec3a24ee7228 100644 (file)
--- a/options.c
+++ b/options.c
@@ -32,7 +32,7 @@ static int str_rw_cb(void *data, const char *str)
        struct thread_data *td = data;
        char *nr = get_opt_postfix(str);
 
-       td->o.ddir_nr = 0;
+       td->o.ddir_nr = 1;
        if (nr)
                td->o.ddir_nr = atoi(nr);
 
@@ -531,6 +531,11 @@ static struct fio_option options[] = {
                            .oval = VERIFY_MD5,
                            .help = "Use md5 checksums for verification",
                          },
+                         {
+                           .ival = "null",
+                           .oval = VERIFY_NULL,
+                           .help = "Pretend to verify",
+                         },
                },
        },
        {