From: Jens Axboe Date: Sat, 28 Jul 2007 19:30:31 +0000 (+0200) Subject: Fix header_interval minimum value X-Git-Tag: fio-1.17~29 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=819a968068aae65bca68ddc7805c01669707b880 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 --- 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",