From 32760dc058fb4ee2bdd86ae333ca2459c923d736 Mon Sep 17 00:00:00 2001 From: adilger Date: Fri, 23 Sep 2005 09:34:07 +0000 Subject: [PATCH] Branch b1_4 Create liblustre test files with O_LARGEFILE so they can grown > 2GB. Clean up the t23 test file. b=9339 --- lustre/liblustre/tests/sanity.c | 1 + lustre/liblustre/tests/test_common.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/liblustre/tests/sanity.c b/lustre/liblustre/tests/sanity.c index af2a362..a0044b5 100644 --- a/lustre/liblustre/tests/sanity.c +++ b/lustre/liblustre/tests/sanity.c @@ -826,6 +826,7 @@ int t23(char *name) } close(fd); + t_unlink(path); LEAVE(); } diff --git a/lustre/liblustre/tests/test_common.c b/lustre/liblustre/tests/test_common.c index b4673fc..29377b1 100644 --- a/lustre/liblustre/tests/test_common.c +++ b/lustre/liblustre/tests/test_common.c @@ -179,7 +179,7 @@ int t_open(const char *path) { int fd; - fd = open(path, O_RDWR); + fd = open(path, O_RDWR | O_LARGEFILE); if (fd < 0) { printf("open(%s) error: %s\n", path, strerror(errno)); EXIT_RET(fd); -- 1.8.3.1