X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=filesetup.c;h=aa1a39455c1ee12285f795d668780ca8f7e8bceb;hp=6108ca302e5b33333d5bbb8d52636839361a6428;hb=66a8a1bf98d714e013ee329dc975f3b6b552de6d;hpb=abb60c32c26d6421283d2a72170508dfb2b94507 diff --git a/filesetup.c b/filesetup.c index 6108ca30..aa1a3945 100644 --- a/filesetup.c +++ b/filesetup.c @@ -331,7 +331,7 @@ unsigned long long get_rand_file_size(struct thread_data *td) { unsigned long long ret, sized; uint64_t frand_max; - unsigned long r; + uint64_t r; frand_max = rand_max(&td->file_size_state); r = __rand(&td->file_size_state); @@ -908,9 +908,6 @@ int setup_files(struct thread_data *td) old_state = td_bump_runstate(td, TD_SETTING_UP); - if (o->read_iolog_file) - goto done; - /* * Find out physical size of files or devices for this thread, * before we determine I/O size and range of our targets. @@ -926,6 +923,9 @@ int setup_files(struct thread_data *td) if (err) goto err_out; + if (o->read_iolog_file) + goto done; + /* * check sizes. if the files/devices do not exist and the size * isn't passed to fio, abort.