filesetup: add native fallocate
[fio.git] / os / os.h
diff --git a/os/os.h b/os/os.h
index 1d400c8f0e303fc3420a5abc40e4a4c0c9955796..afee9f9c65456fb5e50ac5139eb6fc398d6a24f3 100644 (file)
--- a/os/os.h
+++ b/os/os.h
@@ -361,4 +361,12 @@ static inline int shm_attach_to_open_removed(void)
 }
 #endif
 
+#ifndef FIO_HAVE_NATIVE_FALLOCATE
+static inline bool fio_fallocate(struct fio_file *f, uint64_t offset, uint64_t len)
+{
+       errno = ENOSYS;
+       return false;
+}
+#endif
+
 #endif