X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=init.c;h=aba7671c1402ff953dc5549e5303b0b9954c2193;hb=8d916c942bb088204ab5c0438c297903c9160698;hp=b330925c0067e856d3e9ddbda94d42013139bf45;hpb=ae3fcb5afb2479f142912e64cad3c271541af5fe;p=fio.git diff --git a/init.c b/init.c index b330925c..aba7671c 100644 --- a/init.c +++ b/init.c @@ -621,6 +621,14 @@ static int fixup_options(struct thread_data *td) if (td->o.random_distribution != FIO_RAND_DIST_RANDOM) td->o.norandommap = 1; + /* + * If size is set but less than the min block size, complain + */ + if (o->size && o->size < td_min_bs(td)) { + log_err("fio: size too small, must be larger than the IO size: %llu\n", (unsigned long long) o->size); + ret = 1; + } + return ret; }