summaryrefslogtreecommitdiffstats
path: root/test/h5test.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2006-10-10 20:07:16 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2006-10-10 20:07:16 (GMT)
commit65d30cc9c36b782c704daeb4b3f75cdbc7bff680 (patch)
tree58c05fd5f6ef6ee6082acc681599d0ed001c7991 /test/h5test.c
parent176f59f0f4aaadf3c5fe8637b9478a627b43c076 (diff)
downloadhdf5-65d30cc9c36b782c704daeb4b3f75cdbc7bff680.zip
hdf5-65d30cc9c36b782c704daeb4b3f75cdbc7bff680.tar.gz
hdf5-65d30cc9c36b782c704daeb4b3f75cdbc7bff680.tar.bz2
[svn-r12739] Added Direct I/O driver to VFD. It's only supported by SGI Altix (cobalt). There's a configure
option --enable-direct-vfd/--disable-direct-vfd to enable/disable Direct I/O support. The default is enabled. There's a small test in test/vfd.c. Another way to test it is to set environment variable HDF5_DRIVER to "direct" and run "make check" in the test/ directory. There'll be some further improvement in the following checkin including allowing user to provide memory boundary value, file block size, and copying buffer size.
Diffstat (limited to 'test/h5test.c')
-rw-r--r--test/h5test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/h5test.c b/test/h5test.c
index acc7630..5ca5d13 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -577,6 +577,11 @@ h5_fileaccess(void)
if (H5Pset_fapl_log(fapl, NULL, log_flags, (size_t)0) < 0)
return -1;
+ } else if (!HDstrcmp(name, "direct")) {
+#ifdef H5_HAVE_DIRECT
+ /* Linux direct read() and write() system calls */
+ if (H5Pset_fapl_direct(fapl)<0) return -1;
+#endif
} else {
/* Unknown driver */
return -1;