summaryrefslogtreecommitdiffstats
path: root/test/vfd_swmr.c
Commit message (Collapse)AuthorAgeFilesLines
* Committing clang-format changesgithub-actions2022-04-211-11/+13
|
* Modifications to:vchoi2022-04-211-127/+166
| | | | | | | | | | | | A) Allow automatic generation of metadata file names for VDS support B) Allow VFD SWMR reader to open an existing HDF5 file either before the VFD SWMR writer has opened it or after it has closed. C) Remove the usage of H5P_FILE_ACCESS_ANY_VFD. D) Add H5FD_FEAT_SUPPORTS_VFD_SWMR feature flag. E) Do not map H5FD_MEM_GHEAP to H5FD_MEM_DRAW when vfd swmr IS enabled; map H5FD_MEM_GHEAP to H5FD_MEM_DRAW when vfd swmr is NOT enabled. For details regarding #A and #B above, see version 9 of the RFC.
* VFD SWMR: Normalization with develop and cleanup (#1559)Dana Robinson2022-03-311-236/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Brought over plugin and test script changes * Removes remaining register keywords (#1481) * Fixed warnings in the aux process code * Minor fixes from develop * Minor changes from develop, fixed format warnings * Formatted source * Added HD prefix to timespec_get * Cleanup in new files * Removes the MANIFEST file and unused release files (#1497) * Removes the MANIFEST file and unused release files * Updated tar command * checkposix corrections * More checkposix fixes * Ripped out unused instrumentation functionality * Brought over cache tagging changes from develop * Changes to tagged metadata expulsion iteration * Fixed typo * Brought over H5O__free() changes from develop * Brings (unused) parallel page buffer test in line with develop * Moved the functionality in supervise.subr to test_vfd_swmr.sh * Tools VFD parameter updates * Committing clang-format changes * H5F VFD SWMR refactoring * Committing clang-format changes * Misc changes * Acceptance test cleanup * HD prefix * H5_get_option instead of getopt * Some bool fixes * Changes to VFD SWMR acceptance tests * Minor cleanup * Use AC_MSG_RESULT/AC_MSG_ERROR/AC_MSG_WARN instead of echo (#1532) * Merges from develop Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* VFD SWMR: Normalization with develop (#1506)Dana Robinson2022-03-231-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Brought over plugin and test script changes * Removes remaining register keywords (#1481) * Fixed warnings in the aux process code * Minor fixes from develop * Minor changes from develop, fixed format warnings * Formatted source * Added HD prefix to timespec_get * Cleanup in new files * Removes the MANIFEST file and unused release files (#1497) * Removes the MANIFEST file and unused release files * Updated tar command * checkposix corrections * More checkposix fixes * Ripped out unused instrumentation functionality * Brought over cache tagging changes from develop * Changes to tagged metadata expulsion iteration * Fixed typo * Brought over H5O__free() changes from develop * Brings (unused) parallel page buffer test in line with develop * Moved the functionality in supervise.subr to test_vfd_swmr.sh * Tools VFD parameter updates * Committing clang-format changes * H5F VFD SWMR refactoring * Committing clang-format changes * Misc changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* VFD SWMR: normalization with develop (#1472)Dana Robinson2022-03-061-22/+22
| | | Much normalization with develop. Still needs tools changes wrt VFD plugins.
* VFD SWMR: Aux process changes (#1451)Dana Robinson2022-02-181-1/+0
| | | | | | | | | | | * Removed the aux process submodule * Directly added aux process files after submodule delete * Updated Akadio copyright on appropriate files * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Updated VFD SWMR's Akadio licenseDana Robinson2022-02-171-0/+1
|
* Add comments about the window test failure.vchoi2021-12-071-0/+1
|
* Trying to fix the PR's window test failures.vchoi2021-12-071-1/+3
|
* Clang format changes.vchoi2021-12-071-26/+27
|
* Changes to address feedback from PR review.vchoi2021-12-071-152/+156
|
* Committing clang-format changesgithub-actions2021-11-171-220/+213
|
* 1) Core changes for adding NFS/updater support as described in the RFC.vchoi2021-11-171-204/+1174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/H5Pfapl.c src/H5Fvfd_swmr.c src/H5Fpublic.h src/H5Fpkg.h src/H5Fprivate.h 2) For VFD SWMR testing, add private property for checksum generation of metadata files: src/H5Fint.c src/H5Fvfd_swmr.c src/H5Pfapl.c src/H5Fpkg.h src/H5Fprivate.h 3) Fix the following in H5F_vfd_swmr_init() and H5F_vfd_swmr_close_or_flush(): (a) Allocate metadata file index right after metadata file header. (b) Set tick number to 0 when creating header and index for file open case. (c) Remove tick number increment at file close. src/H5Fvfd_swmr.c src/H5Ftest.c 4) To be consistent with the RFC, change the name for field "chksum" to "checksum" in struct H5FD_vfd_swmr_idx_entry_t: src/H5FDprivate.h src/H5FDtest.c src/H5FDvfd_swmr.c src/H5Ftest.c src/H5PB.c 4) Add tests for NFS/updater test/vfd_swmr.c 5) Modify common routine init_vfd_swmr_config() to accept updater_file_path test/vfd_swmr_common.c test/vfd_swmr_common.h 6) Changes to the tests due to the common routine init_vfd_swmr_config(): test/vfd_swmr_addrem_writer.c test/vfd_swmr_attrdset_writer.c test/vfd_swmr_bigset_writer.c test/vfd_swmr_dsetchks_writer.c test/vfd_swmr_dsetops_writer.c test/vfd_swmr_generator.c test/vfd_swmr_gfail_writer.c test/vfd_swmr_gperf_writer.c test/vfd_swmr_group_writer.c test/vfd_swmr_reader.c test/vfd_swmr_remove_reader.c test/vfd_swmr_remove_writer.c test/vfd_swmr_sparse_reader.c test/vfd_swmr_sparse_writer.c test/vfd_swmr_vlstr_reader.c test/vfd_swmr_vlstr_writer.c test/vfd_swmr_writer.c test/page_buffer.c
* VFD SWMR: Fixes for using base versions of versioned API calls (#850)Dana Robinson2021-07-221-15/+15
| | | | | | | * Fixes for using base versions of versioned API calls * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Merge remote-tracking branch 'canonical/feature/vfd_swmr' into ↵Dana Robinson2021-05-031-9/+0
|\ | | | | | | vfd_swmr/thg_standards
| * Merge pull request #436 from raylu-hdf/raylu_zoo_testraylu-hdf2021-04-131-9/+0
| |\ | | | | | | Changed the signal handling to named pipes in the zoo test
| | * Two main changes include: re-arranging the communication between the writer ↵Songyu Lu2021-04-051-9/+0
| | | | | | | | | | | | and reader through the named pipes; using the error report consistent with other tests.
* | | Better VFD SWMR parallel skip testDana Robinson2021-04-061-4/+7
|/ /
* | Fixed 1.6 compatibility issues and ran source formatterDana Robinson2021-03-261-3/+3
|/
* Temporarily disable some tests that fail on WindowsDana Robinson2021-03-251-0/+3
|
* test_same_file_opens() works on Windows now (vfd_swmr.c)Dana Robinson2021-03-251-2/+0
|
* Updates license url and history docsDana Robinson2021-03-251-2/+1
|
* Formats the source and updates the gcc warning pragmasDana Robinson2021-03-251-1042/+1083
|
* Windows cleanupDana Robinson2021-03-101-0/+4
| | | | | * A splitter VFD test in vfd.c fails * Several vfd_swmr.c tests are #ifdef'd around
* Fix brackets on non-POSIX vfd_swmr.cDana Robinson2021-03-101-2/+2
|
* Removes an unused variable from vfd_swmr.cDana Robinson2021-03-091-1/+0
|
* Replaces BSD random functions with ISODana Robinson2021-03-091-3/+2
|
* Changes to help vfd_swmr.c build on WindowsDana Robinson2021-03-081-7/+17
|
* Switch to using H5_nanosleep() instead of HDnanosleep()Dana Robinson2021-03-031-9/+3
| | | | | * Just in the main library and test/vfd_swmr.c * VFD SWMR acceptance tests still use HDnanosleep() directly
* HD prefix and hbool_t changes in test/vfd_swmr.cDana Robinson2021-03-021-22/+22
|
* Fix unfreed memory after fork in vfd_swmr testDana Robinson2021-03-021-0/+12
| | | | | The writer configuration in the vfd_swmr test was not freed in the child process after a call to fork() causing a memory leak.
* Make tests pass on both of my branches, like they ought to: in the tests thatDavid Young2020-08-031-9/+35
| | | | | | | | | | call H5F__vfd_swmr_writer_md_test(), actually sleep for more than `max_lag` ticks so that the deferred-frees queue is actually flushed before we force new items onto the queue and count them. In H5F__vfd_swmr_writer_md_test(), check that the number of deferred shadow-space frees is *precisely* the number `nshadow_defrees`, since that seems to be what the tests that call this routine intend.
* In test_reader_md_concur(), the child has to exit(3), not FAIL_STACK_ERROR, onDavid Young2020-07-301-1/+1
| | | | error.
* Bug fixes: don't double-close a FAPL ID. Always close a file ID.David Young2020-07-301-3/+2
|
* Remove superfluous casts from `void *` to another pointer type prior toDavid Young2020-07-301-22/+20
| | | | assignment. Use a safer sizeof(array element) idiom. NFCI.
* Delete unused local variables. Delete an empty line. NFCI.David Young2020-07-101-4/+0
|
* Don't leak a fapl on error.David Young2020-07-101-7/+8
|
* Remove gratuitous local variable initialization: it's better to let theDavid Young2020-07-101-2/+2
| | | | | compiler detect use-before-initialization. Use the safer `memset(p, ..., sizeof(*p))` idiom.
* Straggler from previous: bsdqueue.h -> H5queue.hDavid Young2020-07-101-1/+1
|
* (1) Add public routines H5Fvfd_swmr_end_tick, ↵vchoi2020-06-261-581/+1221
| | | | | | H5Fvfd_swmr_disable_end_of_tick, H5Fvfd_swmr_enable_end_of_tick(). (2) Tests for the above APIs.
* Be concise and more obviously correct, and knock many line widthsDavid Young2020-06-031-16/+13
| | | | | | | | | | | | | | | | | | | | below than 80 columns: use the malloc idiom, ``` type *p; p = malloc(sizeof(*p)); ``` instead of ``` type *p; p = (type *)malloc(sizeof(type)); ``` Make a similar change to some `memset` calls. NFCI.
* Fix compilation: use H5Oget_info() instead of specifying the versionDavid Young2020-05-201-4/+4
| | | | (H5O_getinfo2).
* Move fetch_env_ulong() from vfd_swmr.c to vfd_swmr_common.c for eventualDavid Young2020-04-281-29/+1
| | | | reuse by the zoo writer.
* Straggler from last: retire vfd_swmr_writer_g.David Young2020-04-201-2/+2
|
* Retire globals vfd_swmr_writer_g and end_of_tick_g.David Young2020-04-201-11/+11
|
* Quiet some used-before-initialized warnings and, while I am here,David Young2020-04-201-3/+3
| | | | initialize one variable with a named constant instead of -1.
* Don't try to free a NULL pointer.David Young2020-04-071-1/+2
|
* Quiet a warning about the variable being used before it is initialized.David Young2020-04-071-1/+1
| | | | | Looks like the compiler actually was wrong, but this is a harmless change to make.
* If the shadow-index size is 0 in the current step, don't calloc(3)David Young2020-04-061-2/+2
| | | | anything, since calloc(0, ...) is undefined.
* Remove a duplicate `#define H5FD_TESTING` line.David Young2020-03-241-1/+0
|