X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=options.c;h=27b4fb65eb1b6158763050badd5821db122f089d;hp=b59dd221fba5220667be82bb062c7ab74ce452e9;hb=29c1349f1840c3f60434c9da602074bc8fde4afe;hpb=c475da759dbd06648277060d72dced84bfcde348 diff --git a/options.c b/options.c index b59dd221..27b4fb65 100644 --- a/options.c +++ b/options.c @@ -384,6 +384,22 @@ static struct fio_option options[] = { .cb = str_filename_cb, .help = "File(s) to use for the workload", }, + { + .name = "lockfile", + .type = FIO_OPT_BOOL, + .off1 = td_var_offset(lockfile), + .help = "Lock file when doing IO to it", + .parent = "filename", + .def = "0", + }, + { + .name = "lockfile_batch", + .type = FIO_OPT_INT, + .off1 = td_var_offset(lockfile_batch), + .help = "Number of IOs to allow per file lock", + .parent = "lockfile", + .def = "1", + }, { .name = "opendir", .type = FIO_OPT_STR_STORE, @@ -1118,7 +1134,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),