X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=filesetup.c;h=9edcac17a822301093d0cbab9068b65e0936857e;hp=88d6565afca65335ea88627f810862385a15da94;hb=8f91cc3f7835cdca84944d456e1da77d44a7c354;hpb=de98bd30b02bd89a78059d162b2c8426e889703d diff --git a/filesetup.c b/filesetup.c index 88d6565a..9edcac17 100644 --- a/filesetup.c +++ b/filesetup.c @@ -97,9 +97,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 /* CONFIG_LINUX_FALLOCATE */ default: @@ -918,9 +918,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; }