projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2577594
)
Older Linux versions do not have O_NOATIME
author
Jens Axboe
<jens.axboe@oracle.com>
Wed, 11 Jun 2008 08:21:43 +0000
(10:21 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Wed, 11 Jun 2008 08:21:43 +0000
(10:21 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
os/os-linux.h
patch
|
blob
|
blame
|
history
diff --git
a/os/os-linux.h
b/os/os-linux.h
index 72950c0e8894b24c6efbd253a84907948e75c262..791ec7a78ae1693ae278fec4cc599a6e1566e324 100644
(file)
--- a/
os/os-linux.h
+++ b/
os/os-linux.h
@@
-230,6
+230,10
@@
static inline int fio_lookup_raw(dev_t dev, int *majdev, int *mindev)
return 0;
}
+#ifdef O_NOATIME
#define FIO_O_NOATIME O_NOATIME
+#else
+#define FIO_O_NOATIME 0
+#endif
#endif