From 819a968068aae65bca68ddc7805c01669707b880 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sat, 28 Jul 2007 21:30:31 +0200 Subject: [PATCH] Fix header_interval minimum value It doesn't make sense to have a value of header size or less, since then there's no room for actual data. Fio even crashes with a value less than the header size. Lets just make the minimum twice the header size, seems reasonable... Signed-off-by: Jens Axboe --- options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options.c b/options.c index 130dc8c7..01d23865 100644 --- a/options.c +++ b/options.c @@ -618,8 +618,8 @@ static struct fio_option options[] = { .name = "header_interval", .type = FIO_OPT_STR_VAL_INT, .off1 = td_var_offset(header_interval), + .minval = 2 * sizeof(struct verify_header), .help = "Store buffer header every N bytes", - .def = "0", }, { .name = "header_offset", -- 2.25.1