Mark do_verify and verify_fatal as booleans
authorJens Axboe <jens.axboe@oracle.com>
Fri, 10 Aug 2007 08:32:14 +0000 (10:32 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 10 Aug 2007 08:32:14 +0000 (10:32 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
HOWTO
options.c

diff --git a/HOWTO b/HOWTO
index ffd8d0a235a6a8b97df25fc4a91403757a026547..3bee1a2d70a42622f70f7a00c422246e4eaa2d6c 100644 (file)
--- a/HOWTO
+++ b/HOWTO
@@ -569,7 +569,7 @@ loops=int   Run the specified number of iterations of this job. Used
                to repeat the same workload a given number of times. Defaults
                to 1.
 
                to repeat the same workload a given number of times. Defaults
                to 1.
 
-do_verify=int  Run the verify phase after a write phase. Only makes sense if
+do_verify=bool Run the verify phase after a write phase. Only makes sense if
                verify is set. Defaults to 1.
 
 verify=str     If writing to a file, fio can verify the file contents
                verify is set. Defaults to 1.
 
 verify=str     If writing to a file, fio can verify the file contents
@@ -632,7 +632,7 @@ verify_pattern=int  If set, fio will fill the io buffers with this
                buffer at the time. The verify_pattern cannot be larger than
                a 32-bit quantity.
 
                buffer at the time. The verify_pattern cannot be larger than
                a 32-bit quantity.
 
-verify_fatal=int       Normally fio will keep checking the entire contents
+verify_fatal=bool      Normally fio will keep checking the entire contents
                before quitting on a block verification failure. If this
                option is set, fio will exit the job on the first observed
                failure.
                before quitting on a block verification failure. If this
                option is set, fio will exit the job on the first observed
                failure.
index 62bbb43c893a08d21be4418a8f2c68932af35066..f1ee6bcf1db868c44a9e0d212bd3172e71c24053 100644 (file)
--- a/options.c
+++ b/options.c
@@ -651,7 +651,7 @@ static struct fio_option options[] = {
        },
        {
                .name   = "do_verify",
        },
        {
                .name   = "do_verify",
-               .type   = FIO_OPT_INT,
+               .type   = FIO_OPT_BOOL,
                .off1   = td_var_offset(do_verify),
                .help   = "Run verification stage after write",
                .def    = "1",
                .off1   = td_var_offset(do_verify),
                .help   = "Run verification stage after write",
                .def    = "1",
@@ -690,7 +690,7 @@ static struct fio_option options[] = {
        },
        {
                .name   = "verify_fatal",
        },
        {
                .name   = "verify_fatal",
-               .type   = FIO_OPT_INT,
+               .type   = FIO_OPT_BOOL,
                .off1   = td_var_offset(verify_fatal),
                .def    = "0",
                .help   = "Exit on a single verify failure, don't continue",
                .off1   = td_var_offset(verify_fatal),
                .def    = "0",
                .help   = "Exit on a single verify failure, don't continue",