X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=filesetup.c;fp=filesetup.c;h=ee58a7b63333728a8a3e392b21e7f202ddecb6f5;hp=9fb325bd18b392f1c1419a01a6518b34da6d90fb;hb=49758e11f3658686ccd1c61724a5eba142f3ee4f;hpb=a7f5831f1feafbaa41a558028226b517734c54a0 diff --git a/filesetup.c b/filesetup.c index 9fb325bd..ee58a7b6 100644 --- a/filesetup.c +++ b/filesetup.c @@ -96,9 +96,9 @@ static int extend_file(struct thread_data *td, struct fio_file *f) r = fallocate(f->fd, FALLOC_FL_KEEP_SIZE, 0, f->real_file_size); - if (r != 0) { + if (r != 0) td_verror(td, errno, "fallocate"); - } + break; #endif /* FIO_HAVE_LINUX_FALLOCATE */ default: @@ -878,9 +878,9 @@ static int __init_rand_distribution(struct thread_data *td, struct fio_file *f) seed = td->rand_seeds[4]; if (td->o.random_distribution == FIO_RAND_DIST_ZIPF) - zipf_init(&f->zipf, nranges, td->o.zipf_theta, seed); + zipf_init(&f->zipf, nranges, td->o.zipf_theta.u.f, seed); else - pareto_init(&f->zipf, nranges, td->o.pareto_h, seed); + pareto_init(&f->zipf, nranges, td->o.pareto_h.u.f, seed); return 1; }