projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f3de88a
)
extend_file need continue when the file exists
author
Zhang, Yanmin
<yanmin_zhang@linux.intel.com>
Tue, 26 Feb 2008 14:35:52 +0000
(15:35 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Tue, 26 Feb 2008 14:35:52 +0000
(15:35 +0100)
If some testing files exist and some others don't exist, fio will
report failure on the no-exist file. Here is a patch to fix it.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
filesetup.c
patch
|
blob
|
blame
|
history
diff --git
a/filesetup.c
b/filesetup.c
index 785afcee48eef27f45d67c33ae38454f58ca47b8..d10840a2374cad5d5cf8add743672756026c6d87 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-34,7
+34,7
@@
static int extend_file(struct thread_data *td, struct fio_file *f)
unlink_file = 1;
if (unlink_file || new_layout) {
unlink_file = 1;
if (unlink_file || new_layout) {
- if (
unlink(f->file_name) < 0
) {
+ if (
(unlink(f->file_name) < 0) && (errno != ENOENT)
) {
td_verror(td, errno, "unlink");
return 1;
}
td_verror(td, errno, "unlink");
return 1;
}