Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Sep 6, 2025 Kbuild

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit 83a809bea583b06f9893003fd76eab7c36c212b1:

Merge branch 'fix_verify-state' of https://github.com/sitsofe/fio (2025-09-04 17:27:53 -0600)

are available in the Git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to fc8f9c7f98156d42fc73fbd6df3c4aa9683df621:

Merge branch 'improve_flushing_darwin' of https://github.com/Developer-Ecosystem-Engineering/fio (2025-09-05 18:05:55 -0600)

----------------------------------------------------------------
Jens Axboe (2):
Fio 3.41
Merge branch 'improve_flushing_darwin' of https://github.com/Developer-Ecosystem-Engineering/fio

Sitsofe Wheeler (2):
mac: implement (file) cache invalidation
mac: add readahead control to the posix_fadvise() shim

 FIO-VERSION-GEN |  2 +-
 Makefile        |  1 +
 os/mac/posix.c  | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 os/mac/posix.h  | 11 +++++++
 os/os-mac.h     |  4 +++
 5 files changed, 116 insertions(+), 1 deletion(-)
 create mode 100644 os/mac/posix.c
 create mode 100644 os/mac/posix.h

---

Diff of recent changes:

FIO-VERSION-GEN +1 -1
index f9db3568..f92f5a46 100755
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 GVF=FIO-VERSION-FILE
-DEF_VER=fio-3.40
+DEF_VER=fio-3.41
 
 LF='
 '
Makefile +1 -0
index ba7ad6dc..2fef67d3 100644
@@ -270,6 +270,7 @@ ifeq ($(CONFIG_TARGET_OS), HP-UX)
 endif
 ifeq ($(CONFIG_TARGET_OS), Darwin)
   LIBS	 += -lpthread -ldl
+  SOURCE += os/mac/posix.c
 endif
 ifneq (,$(findstring CYGWIN,$(CONFIG_TARGET_OS)))
   SOURCE += os/windows/cpu-affinity.c os/windows/posix.c os/windows/dlls.c
os/mac/posix.c new file +99 -0

99 lines not on this page · raw message

os/mac/posix.h new file +11 -0
new file mode 100644
index 00000000..6ef7854a
@@ -0,0 +1,11 @@
+#ifndef FIO_MAC_POSIX_H
+#define FIO_MAC_POSIX_H
+
+#define POSIX_FADV_NORMAL       (0)
+#define POSIX_FADV_RANDOM       (1)
+#define POSIX_FADV_SEQUENTIAL   (2)
+#define POSIX_FADV_DONTNEED     (4)
+
+extern int posix_fadvise(int fd, off_t offset, off_t len, int advice);
+
+#endif
os/os-mac.h +4 -0
index c9103c45..3ade499f 100644
@@ -17,6 +17,8 @@
 #include "../arch/arch.h"
 #include "../file.h"
 
+#include "mac/posix.h"
+
 #define FIO_USE_GENERIC_INIT_RANDOM_STATE
 #define FIO_HAVE_GETTID
 #define FIO_HAVE_CHARDEV_SIZE
@@ -117,3 +119,5 @@ static inline bool os_cpu_has(cpu_features feature)
 }
 
 #endif
+
+#define CONFIG_POSIX_FADVISE