projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96d32d5
)
recurse_dir(): Move . and .. check earlier
author
Jens Axboe
<jens.axboe@oracle.com>
Wed, 14 Mar 2007 08:39:06 +0000
(09:39 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Wed, 14 Mar 2007 08:39:06 +0000
(09:39 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
filesetup.c
patch
|
blob
|
blame
|
history
diff --git
a/filesetup.c
b/filesetup.c
index 3bd8633873cb7c40cb99c284a2d3ad7fdebadf4f..0f1a3402237a265d2480b5e865837938959ad6c1 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-519,9
+519,8
@@
static int recurse_dir(struct thread_data *td, const char *dirname)
char full_path[PATH_MAX];
struct stat sb;
- /*
- * check d_ino here?
- */
+ if (!strcmp(dir->d_name, ".") || !strcmp(dir->d_name, ".."))
+ continue;
sprintf(full_path, "%s/%s", dirname, dir->d_name);
@@
-538,9
+537,6
@@
static int recurse_dir(struct thread_data *td, const char *dirname)
continue;
}
- if (!strcmp(dir->d_name, ".") || !strcmp(dir->d_name, ".."))
- continue;
-
if ((ret = recurse_dir(td, full_path)) != 0)
break;
}