Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
sds-tests
Commits
a3cf7959
Commit
a3cf7959
authored
Dec 14, 2018
by
Philip Carns
Browse files
bug fix: posix_fallocate() returns error directly
parent
12443c86
Changes
1
Hide whitespace changes
Inline
Side-by-side
perf-regression/margo-p2p-bw.c
View file @
a3cf7959
...
...
@@ -20,6 +20,7 @@
#include
<stdio.h>
#include
<string.h>
#include
<assert.h>
#include
<errno.h>
#include
<mpi.h>
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment