X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=init.c;h=1dec2bbd324209acf04b72e1430c4d1d5d9db2cb;hb=a64181472b3556b6e7b95443d94869f6b61ca7ad;hp=f4a37401ec0b507eef3cc04252db1669be66457d;hpb=f3502ba2dd72d846a388c774a01c6bb833871248;p=fio.git diff --git a/init.c b/init.c index f4a37401..1dec2bbd 100644 --- a/init.c +++ b/init.c @@ -679,7 +679,7 @@ static int add_job(struct thread_data *td, const char *jobname, int job_add_num) td->io_ops->flags |= FIO_RAWIO; td->filetype = FIO_TYPE_FILE; - if (!stat(jobname, &sb)) { + if (td->filename && !lstat(td->filename, &sb)) { if (S_ISBLK(sb.st_mode)) td->filetype = FIO_TYPE_BD; else if (S_ISCHR(sb.st_mode)) @@ -845,7 +845,7 @@ int init_random_state(struct thread_data *td) return 0; if (td->rand_repeatable) - seeds[3] = FIO_RANDSEED; + seeds[3] = FIO_RANDSEED * td->thread_number; if (!td->norandommap) { for_each_file(td, f, i) {