From e69dfc2bc3733a844a72743e03db885b27fa8b58 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 5 Jun 2018 13:15:27 -0600 Subject: [PATCH] fallocate: use 'offset' parameter Signed-off-by: Jens Axboe --- os/os-linux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/os-linux.h b/os/os-linux.h index a550bba6..6b63d123 100644 --- a/os/os-linux.h +++ b/os/os-linux.h @@ -403,7 +403,7 @@ static inline bool fio_fallocate(struct fio_file *f, uint64_t offset, uint64_t len) { int ret; - ret = fallocate(f->fd, 0, 0, len); + ret = fallocate(f->fd, 0, offset, len); if (ret == 0) return true; -- 2.25.1