projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix posix_fallocate() return value usage
[fio.git]
/
filesetup.c
diff --git
a/filesetup.c
b/filesetup.c
index b90d12ae8f17aefb4aeb11c1dac3a45b697c9546..f0883901b466969ffa6499946bf9801f06844610 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-71,9
+71,9
@@
static int extend_file(struct thread_data *td, struct fio_file *f)
f->real_file_size);
r = posix_fallocate(f->fd, 0, f->real_file_size);
- if (r
<
0) {
+ if (r
>
0) {
log_err("fio: posix_fallocate fails: %s\n",
- strerror(
-
r));
+ strerror(r));
}
}
#endif