From e3bab463d4397e3378d8c7437e31de8aaf861a4f Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 13 Mar 2007 11:22:09 +0100 Subject: [PATCH] td->filename vs f->filename typo Signed-off-by: Jens Axboe --- filesetup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/filesetup.c b/filesetup.c index c189de59..a5b84c21 100644 --- a/filesetup.c +++ b/filesetup.c @@ -414,13 +414,13 @@ void close_files(struct thread_data *td) td->nr_files = 0; } -static void get_file_type(struct thread_data *td, struct fio_file *f) +static void get_file_type(struct fio_file *f) { struct stat sb; f->filetype = FIO_TYPE_FILE; - if (!lstat(td->filename, &sb)) { + if (!lstat(f->file_name, &sb)) { if (S_ISBLK(sb.st_mode)) f->filetype = FIO_TYPE_BD; else if (S_ISCHR(sb.st_mode)) @@ -440,7 +440,7 @@ void add_file(struct thread_data *td, const char *fname) f->fd = -1; f->file_name = strdup(fname); - get_file_type(td, f); + get_file_type(f); td->open_files++; td->nr_uniq_files = td->open_files; -- 2.25.1