X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=filesetup.c;h=bf05b6f000e4caf6158c4f0783ca9d5806fa6cc8;hb=919e789d0999bf13ef1ae670c536d2aef3709894;hp=fa09219f62a2e2b93f0e001b2e7254da72e04e99;hpb=c3afb7639f41e58e44481151e3aa4caa6be789f6;p=fio.git diff --git a/filesetup.c b/filesetup.c index fa09219f..bf05b6f0 100644 --- a/filesetup.c +++ b/filesetup.c @@ -806,7 +806,7 @@ int setup_files(struct thread_data *td) * Calculate per-file size and potential extra size for the * first files, if needed. */ - if (!o->file_size_low) { + if (!o->file_size_low && o->nr_files) { uint64_t all_fs; fs = o->size / o->nr_files;