Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
b=14901
[fs/lustre-release.git]
/
lustre
/
tests
/
test_brw.c
diff --git
a/lustre/tests/test_brw.c
b/lustre/tests/test_brw.c
index
d225b47
..
fe18021
100644
(file)
--- a/
lustre/tests/test_brw.c
+++ b/
lustre/tests/test_brw.c
@@
-3,7
+3,9
@@
*/
/* for O_DIRECT */
*/
/* for O_DIRECT */
-#define _GNU_SOURCE
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
@@
-81,7
+83,7
@@
int main(int argc, char **argv)
{
int fd;
char *buf;
{
int fd;
char *buf;
- lo
ff_t
count, last, offset;
+ lo
ng long
count, last, offset;
long pg_vec, len;
__u64 objid;
struct stat st;
long pg_vec, len;
__u64 objid;
struct stat st;
@@
-152,8
+154,8
@@
int main(int argc, char **argv)
objid = 3;
}
objid = 3;
}
- printf("%s: %s on %s(objid "LPX64") for
"LPSZ"
x%ld pages \n",
- argv[0],
+ printf("%s: %s on %s(objid "LPX64") for
%llu
x%ld pages \n",
+ argv[0],
#ifdef O_DIRECT
flags & O_DIRECT ? "directio" : "i/o",
#else
#ifdef O_DIRECT
flags & O_DIRECT ? "directio" : "i/o",
#else