diff options
author | vchoi <vchoi@jelly.ad.hdfgroup.org> | 2021-07-13 22:36:48 (GMT) |
---|---|---|
committer | vchoi <vchoi@jelly.ad.hdfgroup.org> | 2021-07-13 22:36:48 (GMT) |
commit | 3d5c597c49a69af72bb8c58e0f4cc0636a8e1ece (patch) | |
tree | bc5bbfe1a7cc3ec609661ca616ed0cafad68ddd2 /test/vfd_swmr_common.h | |
parent | fd014862f795dfdf5b50e4f63d34929625536cfe (diff) | |
download | hdf5-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_common.h')
-rw-r--r-- | test/vfd_swmr_common.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/vfd_swmr_common.h b/test/vfd_swmr_common.h index fee0725..b2fbbbd 100644 --- a/test/vfd_swmr_common.h +++ b/test/vfd_swmr_common.h @@ -71,12 +71,14 @@ H5TEST_DLL void await_signal(hid_t); #endif /* H5_HAVE_WIN32_API */ H5TEST_DLL hid_t vfd_swmr_create_fapl(bool use_latest_format, bool use_vfd_swmr, bool only_meta_pages, - H5F_vfd_swmr_config_t *config); + size_t page_buf_size, H5F_vfd_swmr_config_t *config); H5TEST_DLL void init_vfd_swmr_config(H5F_vfd_swmr_config_t *config, uint32_t tick_len, uint32_t max_lag, hbool_t writer, hbool_t flush_raw_data, uint32_t md_pages_reserved, const char *md_file_fmtstr, ...) H5_ATTR_FORMAT(printf, 7, 8); +H5TEST_DLL hid_t vfd_swmr_create_fcpl(H5F_fspace_strategy_t fs_strategy, hsize_t fs_page_size); + H5TEST_DLL void dbgf(int, const char *, ...) H5_ATTR_FORMAT(printf, 2, 3); H5TEST_DLL void evsnprintf(char *, size_t, const char *, va_list); H5TEST_DLL void esnprintf(char *, size_t, const char *, ...) H5_ATTR_FORMAT(printf, 3, 4); |