summaryrefslogtreecommitdiffstats
path: root/test/page_buffer.c
Commit message (Collapse)AuthorAgeFilesLines
* Derive the name of the shadow file from the HDF5 file: drop the .h5, addDavid Young2020-08-211-6/+12
| | | | .shadow.
* Trim trailing whitespaceQuincey Koziol2020-05-201-57/+57
|
* more cleanupkmu2020-05-201-2/+2
|
* fix unused related warningskmu2020-05-201-0/+6
|
* more fix and address commentskmu2020-05-201-12/+3
|
* remove unsed var,function,macro, etckmu2020-05-201-8/+25
|
* Yanked -Wc++-compat from the flags used to build the C library in bothDana Robinson2020-05-201-2/+2
| | | | the Autotools and CMake.
* So that I can use PASSED(); anywhere a statement can go, #define PASSED() withDavid Young2020-02-281-9/+9
| | | | a do-while wrapper.
* Quiet some warnings about jumping over variable initialization,David Young2020-02-061-8/+15
| | | | an improper format string, etc. NFCI.
* Be brief: don't cast the last parameter of H5Pset_file_space_strategy(), theDavid Young2019-12-091-12/+10
| | | | constant `1`, to `hsize_t`.
* Merge all of my changes from merge-back-to-feature-vfd_swmr-attempt-1,David Young2019-12-091-26/+27
| | | | | | | | including the merge of `hdffv/hdf5/develop`, back to the branch that Vailin and I share. Now I need to put this branch on a fork with a less confusing name than vchoi_fork!
* Modifications for the following items in the punch list:Vailin Choi2019-11-141-1/+1
| | | | | | | | | (A) #5: Add the "pb_expansion_threshold" field to the "H5F_vfd_swmr_config_t" structure and update H5Pset_vfd_swmr_config() and H5Pget_vfd_swmr_config() accordingly (B) #13 bullet 2: Comment H5F_vfd_swmr_config_t in H5Fpublic.h properly (copied from John's description in the RFC) (C) Change the field name "vfd_swmr_writer" to "writer" in "struct H5F_vfd_swmr_config_t" (as indicated on page 11 in the RFC) and all references to it
* Good-bye md_open_tries.David Young2019-11-141-3/+0
|
* Refactor a bit, remove dead code, move some helper functions to the topDavid Young2019-10-021-261/+355
| | | | of the file, remove unused variables.
* Initialize `data` and `odata` to NULL like the exit sequencesDavid Young2019-09-301-2/+6
| | | | expect. Free `odata`.
* Add a test for single-page metadata (SPMDE) writes. Mention in aDavid Young2019-09-301-10/+150
| | | | | | | | | | | | comment to myself that I need to reduce code duplication with the MPMDE test. In vfd_read_each_equals(), print the correct expected value when there is a discrepancy. No functional change intended: correct a comment in vfd_read_each_equals. Fix indentation in the test_raw_data_handling() header comment.
* Rename the metadata test again to reflect how it's checking the pageDavid Young2019-09-271-13/+28
| | | | | | buffer's treatment of multipage metadata entries (MPMDEs). Mention why an H5PB_flush() is not necessary for MPMDEs to reach visibility at the VFD layer.
* Don't use FILENAME and FILENAME[0] because that looks like worrisomeDavid Young2019-09-271-83/+83
| | | | | | | | | | | | | | | | | | macro magic. Use namebases and namebase, instead. Extract a bunch of copy-and-paste VFD SWMR setup into a new subroutine, swmr_fapl_augment(). Make sure that the metadata reads all-0s until it reads all -1s. Extract a subroutine, vfd_read_each_equals(), that reads and compares a region with one of its arguments. Rename from test_basic_metadata_handling() to test_metadata_delay_basic(), since that gets at what we're testing better. Don't perform an H5PB_flush(), it's not necessary for this test because H5Fvfd_swmr_end_tick() has done essentially the same thing.
* Write test data from a different buffer than we read into, since IDavid Young2019-09-261-13/+16
| | | | | | | | | | | anticipate comparing the written buffer with the read buffer. Don't initialize variables prematurely so that the compiler has a chance to warn about variables read before they are written. Repeatedly flush the page buffer, once each time we end the tick. Write errors to stdout instead of stderr.
* Add a basic metadata test for VFD SWMR page buffering. Currently theDavid Young2019-09-231-5/+310
| | | | | | test fails.... Make some comments more true to reality and fix a couple of typos.
* Don't calloc() the VFD SWMR configuration, just use a local variable.David Young2019-09-231-333/+71
| | | | | | | Combine the VFD SWMR and non-VFD SWMR raw-data test into one routine that takes a bool parameter to switch on VFD SMWR. Update my description of the to-be-written metadata test for VFD SWMR.
* Delete end-of-block comments, they're uninformative and they make the pageDavid Young2019-09-201-18/+18
| | | | busy.
* Revise a warning puts() to be more hopeful about VFD SWMR andDavid Young2019-09-201-1/+1
| | | | multi/split compatibility.
* Unse TEST_ERROR instead of the return statement I copied & pasted, oops.David Young2019-09-191-6/+7
| | | | | | Use a (more) accurate name for the VFD SWMR test routine. Mention that VFD SWMR isn't expected to work with multi/split VFDs, yet.
* Add the zygote of VFD SWMR-mode page-buffer tests.David Young2019-09-171-0/+311
|
* (1) Fix for accumulator issue #1 as described in John's previous checkinVailin Choi2018-12-021-22/+20
| | | | | | (2) Test files for encoding/decoding property lists (3) Fix test failures for PB statistics in test/page_buffer.c (Will double check with John later about PB statistics collection)
* Initial checkin of page buffer re-implementation to support VFD SWMR.mainzer2018-11-041-330/+549
| | | | | | | | | | | | | | | | | | | | | | Tested serial / debug on Charis and Jelly. Two known issues: 1) New page buffer seems to expose issues in the accumulator code. For whatever reason, fheap with the new page buffer exposes corruption issues if the page buffer uses H5F__accum_read/write(), but the problems go away if the page buffers uses H5FD_read/write() instead. Need to either chase this or dis-able page bufffer in combination with the accumulator. 2) Encountered a number of assertion failures that are explainable by the free space manager code not telling the page buffer to discard pages when they are freed. Wrote code to handle this -- once the free space manager is modified, this code should be removed and the original assertions restored.
* Normalization with vol_integration (test code and H5Xtest.c)Dana Robinson2018-09-201-5/+5
|
* Fixed HDFFV-10404Binh-Minh Ribler2018-07-131-5/+5
| | | | | | | | | Description: Applied the typo fixes from user's report. The previous pull request couldn't be merged because it was too old, and it was too complicated for me to resolve conflicts. Platform tested: Linux/64 (jelly) - very minor
* Cleanup API context function usage.Quincey Koziol2018-03-191-26/+11
|
* Add API context interface and use it throughout the library.Quincey Koziol2018-03-151-129/+148
|
* Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to ↵Larry Knox2017-04-251-6/+4
| | | | | | | | | | hdf5_1_10 * commit '54957d37f5aa73912763dbb6e308555e863c43f4': Commit copyright header change for src/H5PLpkg.c which was added after running script to make changes. Add new files in release_docs to MANIFEST. Cimmit changes to Makefile.in(s) and H5PL.c that resulted from running autogen.sh. Merge pull request #407 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10_1 to hdf5_1_10_1 Change copyright headers to replace url referring to file to be removed and replace it with new url for COPYING file.
* Omnibus checkin for several relatively minor modifications:mainzer2017-03-281-7/+128
| | | | | | | | | | | | | | | | | | | | 1) Added code test/page_buffer.c to verify that page buffering is disabled in parallel builds. 2) Added code to test/cache_image.c to verify correct interaction between evict on close and cache image -- in particular management of a file containing a cache image containing dirty metadata that has been opened R/O. Also fix for the bug exposed. 3) Added code to testpar/t_cache_image.c to verify expected procedure for reading cache images, and also supporting stats collection code needed for the test. 4) Repair of an overactive sanity check in H5C__reconstruct_cache_contents(). 5) Other minor tidies in passing. Tested serial and parallel, debug and production on Jelly.
* Final merge of page buffering branch to developQuincey Koziol2017-03-141-0/+2087