summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3c48c2c)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
+#ifdef FIO_HAVE_FALLOCATE
dprint(FD_FILE, "fallocate file %s, size %llu\n", f->file_name,
f->real_file_size);
r = posix_fallocate(f->fd, 0, f->real_file_size);
if (r < 0)
log_err("fio: posix_fallocate fails: %s\n", strerror(-r));
dprint(FD_FILE, "fallocate file %s, size %llu\n", f->file_name,
f->real_file_size);
r = posix_fallocate(f->fd, 0, f->real_file_size);
if (r < 0)
log_err("fio: posix_fallocate fails: %s\n", strerror(-r));
b = malloc(td->o.max_bs[DDIR_WRITE]);
memset(b, 0, td->o.max_bs[DDIR_WRITE]);
b = malloc(td->o.max_bs[DDIR_WRITE]);
memset(b, 0, td->o.max_bs[DDIR_WRITE]);
#define FIO_HAVE_RAWBIND
#define FIO_HAVE_BLKTRACE
#define FIO_HAVE_STRSEP
#define FIO_HAVE_RAWBIND
#define FIO_HAVE_BLKTRACE
#define FIO_HAVE_STRSEP
+#define FIO_HAVE_FALLOCATE
#define OS_MAP_ANON (MAP_ANONYMOUS)
#define OS_MAP_ANON (MAP_ANONYMOUS)
#undef FIO_HAVE_DISK_UTIL
#undef FIO_HAVE_SGIO
#undef FIO_HAVE_ODIRECT
#undef FIO_HAVE_DISK_UTIL
#undef FIO_HAVE_SGIO
#undef FIO_HAVE_ODIRECT
+#define FIO_HAVE_FALLOCATE
#define OS_MAP_ANON (MAP_ANON)
#define OS_MAP_ANON (MAP_ANON)