projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
filesetup: add native fallocate
[fio.git]
/
os
/
os.h
diff --git
a/os/os.h
b/os/os.h
index 21b7a9d03a5269e2b02e04517cfe944577977413..afee9f9c65456fb5e50ac5139eb6fc398d6a24f3 100644
(file)
--- a/
os/os.h
+++ b/
os/os.h
@@
-60,11
+60,6
@@
typedef struct aiocb os_aiocb_t;
#endif
#endif
#endif
#endif
-#ifdef FIO_HAVE_SGIO
-#include <linux/fs.h>
-#include <scsi/sg.h>
-#endif
-
#ifndef CONFIG_STRSEP
#include "../oslib/strsep.h"
#endif
#ifndef CONFIG_STRSEP
#include "../oslib/strsep.h"
#endif
@@
-329,14
+324,6
@@
static inline unsigned long long get_fs_free_size(const char *path)
}
#endif
}
#endif
-#ifdef __powerpc64__
-#define FIO_HAVE_CPU_ONLINE_SYSCONF
-static inline unsigned int cpus_online(void)
-{
- return sysconf(_SC_NPROCESSORS_CONF);
-}
-#endif
-
#ifndef FIO_HAVE_CPU_ONLINE_SYSCONF
static inline unsigned int cpus_online(void)
{
#ifndef FIO_HAVE_CPU_ONLINE_SYSCONF
static inline unsigned int cpus_online(void)
{
@@
-374,4
+361,12
@@
static inline int shm_attach_to_open_removed(void)
}
#endif
}
#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
#endif