From: Tomohiro Kusumi Date: Wed, 27 Jul 2016 13:37:18 +0000 (+0900) Subject: Rename exists_and_not_file() to exists_and_not_regfile() X-Git-Tag: fio-2.14~81 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=5e62565b99c2d133e71cf7eed8586307452ad225 Rename exists_and_not_file() to exists_and_not_regfile() Renaming makes the purpose of this function more clear IMO. Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- diff --git a/init.c b/init.c index 82b21c78..f81db3c8 100644 --- a/init.c +++ b/init.c @@ -904,7 +904,7 @@ static const char *get_engine_name(const char *str) return p; } -static int exists_and_not_file(const char *filename) +static int exists_and_not_regfile(const char *filename) { struct stat sb; @@ -1347,7 +1347,7 @@ static int add_job(struct thread_data *td, const char *jobname, int job_add_num, if (!o->filename && !td->files_index && !o->read_iolog_file) { file_alloced = 1; - if (o->nr_files == 1 && exists_and_not_file(jobname)) + if (o->nr_files == 1 && exists_and_not_regfile(jobname)) add_file(td, jobname, job_add_num, 0); else { for (i = 0; i < o->nr_files; i++)