9 Commits

Author SHA1 Message Date
a1346054
0d3215a10b fix spelling 2021-08-25 13:23:06 +00:00
Michel Machado
46a509578f libflow: address compilation warning on ARM
This patch addresses issue #151.
2020-11-25 14:00:47 -05:00
Michel Machado
9a9e74250d libflow: accommodate Macs
As of today, macOS or OS X still does not implement
clock_nanosleep() according to this project:
https://github.com/ChisholmKyle/PosixMachTiming
2020-06-23 08:01:52 -04:00
Michel Machado
5ac9551d87 libflow: avoid types size_t and ssize_t in libflow.h
Those types are not included in libflow.h and
including them is overwhelming.
2020-06-23 07:35:05 -04:00
Michel Machado
79cd2d66a2 libflow: rename fields and variables for generality
The original libflow was written for f3write only, and
this was reflected in the name of fields and variables
throughout the code. This patch renames these fields and
variables to reflect the fact that libflow will eventually
support f3write AND f3read.
2020-06-22 16:38:42 -04:00
Michel Machado
a759140bc5 libflow: replace usleep() with clock_nanosleep()
POSIX.1-2008 removed usleep() and POSIX.1-2001 introduced
clock_nanosleep().
2020-06-22 16:38:42 -04:00
Michel Machado
e2a59bc08d libflow: avoid fdatasync() and posix_fadvise()
This patch moves calls to fdatasync() and posix_fadvise() out of
libflow as one more step to generalize libflow.
2020-06-22 16:38:42 -04:00
Michel Machado
791acdc326 libflow: do measurements over multiple files
With really fast drives (i.e. >1GB/s), f3write needs to
write multiple files before a measurement can be made.
This patch enhances the flow library to deal with such fast drives.
2020-06-22 16:38:42 -04:00
Michel Machado
b1ab05c280 f3write: move flow code to a new library (libflow)
This is the first step toward generalizing the flow code in order to
reuse it in f3read.
2020-06-22 16:38:42 -04:00