fix hugepage-size type mismatch
authorAaron Carroll <aaronc@gelato.unsw.edu.au>
Wed, 20 Feb 2008 08:14:13 +0000 (09:14 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 20 Feb 2008 08:14:13 +0000 (09:14 +0100)
hugepage_size in thread_options is of type int, but listed in
options.c as type long.  This patch reconciles the two.

Signed-off-by: Aaron Carroll <aaronc@gelato.unsw.edu.au>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
options.c

index b59dd221fba5220667be82bb062c7ab74ce452e9..1119a9806346219958ca512573f9ac4f25ca08d0 100644 (file)
--- a/options.c
+++ b/options.c
@@ -1118,7 +1118,7 @@ static struct fio_option options[] = {
        },
        {
                .name   = "hugepage-size",
-               .type   = FIO_OPT_STR_VAL,
+               .type   = FIO_OPT_STR_VAL_INT,
                .off1   = td_var_offset(hugepage_size),
                .help   = "When using hugepages, specify size of each page",
                .def    = __stringify(FIO_HUGE_PAGE),