From f99a02bab1298b0c52ad3c0845280043706ca254 Mon Sep 17 00:00:00 2001 From: adilger Date: Thu, 12 Sep 2002 04:05:52 +0000 Subject: [PATCH] Add O_LARGEFILE and O_DIRECT to openclose test so we can eventually stress test the kernel for O_DIRECT again. --- lustre/tests/Makefile.am | 3 ++- lustre/tests/openclose.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lustre/tests/Makefile.am b/lustre/tests/Makefile.am index 0430d68..aa5663b 100644 --- a/lustre/tests/Makefile.am +++ b/lustre/tests/Makefile.am @@ -24,7 +24,7 @@ noinst_SCRIPTS = fs.sh intent-test.sh intent-test2.sh leak_finder.pl \ pkglib_SCRIPTS = common.sh pkgcfg_DATA = lustre.cfg noinst_PROGRAMS = openunlink testreq truncate directio openme writeme mcreate -noinst_PROGRAMS += munlink tchmod toexcl fsx test_brw #ldaptest +noinst_PROGRAMS += munlink tchmod toexcl fsx test_brw openclose #ldaptest # ldaptest_SOURCES = ldaptest.c tchmod_SOURCES = tchmod.c @@ -39,5 +39,6 @@ openme_SOURCES = openme.c writeme_SOURCES = writeme.c fsx_SOURCES = fsx.c test_brw_SOURCES = test_brw.c +openclose_SOURCES = openclose.c include $(top_srcdir)/Rules diff --git a/lustre/tests/openclose.c b/lustre/tests/openclose.c index 9077e3d..f871044 100644 --- a/lustre/tests/openclose.c +++ b/lustre/tests/openclose.c @@ -33,7 +33,7 @@ int main(int argc, char *argv[]) } for (i = 0; i < count; i++) { - fd = open(filename, O_RDONLY); + fd = open(filename, O_RDONLY|O_LARGEFILE|O_DIRECT); if (fd < 0) { fprintf(stderr, "open(%s, O_RDONLY): %s\n", filename, strerror(errno)); -- 1.8.3.1