summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2006-10-27 02:41:19 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2006-10-27 02:41:19 (GMT)
commit0f040c40f0b8759ea7af6b2dcbf6bb75e92e34dd (patch)
tree2721acae3ea82a76bc35e814b4ab129184052f94 /test
parent469f6d30b1b6641f62bda85f31ca2b3c03dba428 (diff)
downloadhdf5-0f040c40f0b8759ea7af6b2dcbf6bb75e92e34dd.zip
hdf5-0f040c40f0b8759ea7af6b2dcbf6bb75e92e34dd.tar.gz
hdf5-0f040c40f0b8759ea7af6b2dcbf6bb75e92e34dd.tar.bz2
[svn-r12820] Added fragmental copy buffer to H5FD_direct_write. This buffer size is set through
H5Pset_fapl_direct. It's been added to H5FD_direct_read in the previous checkin. Still, a test is needed at later checkin.
Diffstat (limited to 'test')
-rw-r--r--test/h5test.c2
-rw-r--r--test/vfd.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/test/h5test.c b/test/h5test.c
index 6c9e8ee..93f992e 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -581,7 +581,7 @@ h5_fileaccess(void)
#ifdef H5_HAVE_DIRECT
/* Linux direct read() and write() system calls. Set memory boundary, file block size,
* and copy buffer size to the default values. */
- if (H5Pset_fapl_direct(fapl, 0, 0, 0)<0) return -1;
+ if (H5Pset_fapl_direct(fapl, 1024, 4096, 8*4096)<0) return -1;
#endif
} else {
/* Unknown driver */
diff --git a/test/vfd.c b/test/vfd.c
index 02e2478..8c1fb23 100644
--- a/test/vfd.c
+++ b/test/vfd.c
@@ -29,7 +29,7 @@
#define CORE_INCREMENT (4*KB)
#define MBOUNDARY 512
#define FBSIZE 4096
-#define CBSIZE 64*1024*1024
+#define CBSIZE 4096
const char *FILENAME[] = {
"sec2_file",
@@ -145,9 +145,9 @@ test_direct(void)
char filename[1024];
int *fhandle=NULL;
hsize_t file_size;
- hsize_t mbound;
- hsize_t fbsize;
- hsize_t cbsize;
+ size_t mbound;
+ size_t fbsize;
+ size_t cbsize;
#endif /*H5_HAVE_DIRECT*/
TESTING("Direct I/O file driver");