From a3cf7959e5bb4e6a64179629359765ba9dcc44d8 Mon Sep 17 00:00:00 2001 From: Phil Carns Date: Fri, 14 Dec 2018 13:28:51 -0500 Subject: [PATCH] bug fix: posix_fallocate() returns error directly --- perf-regression/margo-p2p-bw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/perf-regression/margo-p2p-bw.c b/perf-regression/margo-p2p-bw.c index 85fd2de..9528db7 100644 --- a/perf-regression/margo-p2p-bw.c +++ b/perf-regression/margo-p2p-bw.c @@ -20,6 +20,7 @@ #include #include #include +#include #include @@ -611,6 +612,7 @@ static void* custom_mmap_alloc(const char* filename, size_t size, int rank) ret = posix_fallocate(fd, 0, size); if(ret != 0) { + errno = ret; perror("posix_fallocate"); return(NULL); } -- 2.26.2