X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=filesetup.c;h=3462a03d035d90d935e82994dce2787af4e98b5b;hp=f4e1adcb01a10ae22c352cfe75a3a351305ccba1;hb=2a988d8bcb447eb098fc382835cc507587c6ba66;hpb=d06ab917303f70289ad8f256c6e79a1eeee4bee4 diff --git a/filesetup.c b/filesetup.c index f4e1adcb..3462a03d 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; }