projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
td->filename vs f->filename typo
[fio.git]
/
filesetup.c
diff --git
a/filesetup.c
b/filesetup.c
index c189de599f62066b72d8652ef2f4cdfc9c62d9f4..a5b84c215cf740a50611ca20e16dfb0eedf1a49e 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-414,13
+414,13
@@
void close_files(struct thread_data *td)
td->nr_files = 0;
}
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;
{
struct stat sb;
f->filetype = FIO_TYPE_FILE;
- if (!lstat(
td->file
name, &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))
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);
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;
td->open_files++;
td->nr_uniq_files = td->open_files;