summaryrefslogtreecommitdiffstats
path: root/test/vfd_swmr_zoo_writer.c
diff options
context:
space:
mode:
authorvchoi <vchoi@jelly.ad.hdfgroup.org>2021-07-13 22:36:48 (GMT)
committervchoi <vchoi@jelly.ad.hdfgroup.org>2021-07-13 22:36:48 (GMT)
commit3d5c597c49a69af72bb8c58e0f4cc0636a8e1ece (patch)
treebc5bbfe1a7cc3ec609661ca616ed0cafad68ddd2 /test/vfd_swmr_zoo_writer.c
parentfd014862f795dfdf5b50e4f63d34929625536cfe (diff)
downloadhdf5-3d5c597c49a69af72bb8c58e0f4cc0636a8e1ece.zip
hdf5-3d5c597c49a69af72bb8c58e0f4cc0636a8e1ece.tar.gz
hdf5-3d5c597c49a69af72bb8c58e0f4cc0636a8e1ece.tar.bz2
Modifications to common routines used by VFD SWMR tests:
(1) Add a parameter page_buf_size to the common routine vfd_swmr_create_fapl(). (2) Add a new common routine vfd_swmr_create_fcpl() to set the file space strategy and file space page size. VFD SWMR tests are modified accordingly to call the above routines.
Diffstat (limited to 'test/vfd_swmr_zoo_writer.c')
-rw-r--r--test/vfd_swmr_zoo_writer.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/test/vfd_swmr_zoo_writer.c b/test/vfd_swmr_zoo_writer.c
index 1cfaec5..74a68b5 100644
--- a/test/vfd_swmr_zoo_writer.c
+++ b/test/vfd_swmr_zoo_writer.c
@@ -477,8 +477,8 @@ main(int argc, char **argv)
init_vfd_swmr_config(&vfd_swmr_config, TICK_LEN, 7, writer, FALSE, 128, "./zoo-shadow");
/* ? turn off use latest format argument via 1st argument? since later on it reset to early format */
- /* use_latest_format, use_vfd_swmr, only_meta_page, config */
- if ((fapl = vfd_swmr_create_fapl(true, use_vfd_swmr, true, &vfd_swmr_config)) < 0) {
+ /* use_latest_format, use_vfd_swmr, only_meta_page, page_buf_size, config */
+ if ((fapl = vfd_swmr_create_fapl(true, use_vfd_swmr, true, 4096, &vfd_swmr_config)) < 0) {
H5_FAILED();
AT();
HDprintf("vfd_swmr_create_fapl");
@@ -499,19 +499,13 @@ main(int argc, char **argv)
goto error;
}
- if ((fcpl = H5Pcreate(H5P_FILE_CREATE)) < 0) {
+ if ((fcpl = vfd_swmr_create_fcpl(H5F_FSPACE_STRATEGY_PAGE, 4096)) < 0) {
H5_FAILED();
AT();
- HDprintf("H5Pcreate failed");
+ HDprintf("vfd_swmr_create_fcpl() failed");
goto error;
}
- if (H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_PAGE, false, 1) < 0) {
- H5_FAILED();
- AT();
- HDprintf("H5Pset_file_space_strategy failed");
- goto error;
- }
if (writer)
fid = H5Fcreate("vfd_swmr_zoo.h5", H5F_ACC_TRUNC, fcpl, fapl);