Whamcloud - gitweb
Add O_LARGEFILE and O_DIRECT to openclose test so we can eventually stress
authoradilger <adilger>
Thu, 12 Sep 2002 04:05:52 +0000 (04:05 +0000)
committeradilger <adilger>
Thu, 12 Sep 2002 04:05:52 +0000 (04:05 +0000)
test the kernel for O_DIRECT again.

lustre/tests/Makefile.am
lustre/tests/openclose.c

index 0430d68..aa5663b 100644 (file)
@@ -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
index 9077e3d..f871044 100644 (file)
@@ -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));