summaryrefslogtreecommitdiffstats
path: root/src/H5Dvirtual.c
Commit message (Collapse)AuthorAgeFilesLines
* 1.10: Add spelling check to CI and fix errors. (#2442)Allen Byrne2023-02-161-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update CI and support files to match latest from 1.14 * Correct spelling * More spelling corrections * spelling fixes in testpar * Fix spelling errors in tools * More tools spelling fixes * Spelling fixes for rest of tools and some src * Fix spelling errors in src files, pt 2 * Fix spelling in src pt3 * Fix spelling errors pt4 * Fix spelling errors pt5 * Spelling fix pt6 * fix spelling error examples * fix spelling in tests * fix spelling errors in test pt2 * Fix spelling errors in test pt3 * fix spelling in test pt4 * Fix spelling errors in hl * fix spelling errors in c++ * Spelling fixes for fortran * spelling fixes for bin and java * Add relative path * Change spelling action to use a file for list of ignore words * Fix spelling ignore list * remove unused file
* 1.10 clang 13 format #1933 (#1940)Allen Byrne2022-07-291-38/+38
| | | | | * clang 13 format #1933 * Correct workflow
* [1.10 Merge] Hdf5 1 10 warnings merge (#1754)jhendersonHDF2022-05-081-19/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Warnings fixes (#1680) * Clean stack size warnings in sio_engine (#1687) * Fixes stack size warnings in tcoords.c (#1688) * Address some warnings from casting away of const (#1684) * Fixes stack size warnings in dtransform (#1696) * Fixes stack size warnings in set_extent test (#1698) * Be a bit safer with signed arithmetic, thus quieting some signed-overflow warnings from GCC (#1706) * Avoid a signed overflow: check the range of `entry_ptr->age` before increasing it instead of increasing it and then checking the range. This quiets a GCC warning. * Avoid the potential for signed overflow by rewriting expressions `MAX(0, fwidth - n)` as `MAX(n, fwidth) - n` for various `n`. This change quiets some GCC warnings. * Change some local variables that cannot take sensible negative values from signed to unsigned. This quiets GCC warnings about potential signed overflow. * In a handful of instances, check the range of a signed integer before increasing/decreasing it, just in case the increase/decrease overflows. This quiets a handful of GCC signed-overflow warnings. * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * Fix object size warnings in cache.c test (#1701) * Fix some const cast and stack/static object size warnings (#1700) * Fix various warnings * Move HDfree_const to H5private.h for wider use * Print output from all ranks in parallel tests on allocation failure * Move const pointer freeing macro to h5test.h for now * Fixes a bug where t_cache fails due to a string size being too small (#1720) * Fixes a bug where t_cache fails due to a string size being too small Recent warning reductions led to an incorrect string size being passed to h5_fileaccess, causing the test to silently fail. In addition to fixing the bug, the test will now fail noisily on setup failures. * Updates the t_cache test to fail noisily on setup errors * Fix a few Clang sanitizer warnings (#1727) * Stop lying about H5S_t const-ness (#1209) Hyperslabs can be reworked inside several H5S callbacks, making H5S_t non-const in some places where it is marked const. This change switches these incorrectly const H5S_t pointer parameters and variables to non-const where appropriate. * Fix a few warnings after recent H5S const-related changes (#1225) * Adjustments for HDF5 1.10 * Hdf5 1 12 Miscellaneous warnings fixes (#1718) * Fixes const issues in the version 2 B-trees (#1172) The operations that were changed are fundamentally not const since the shadow operation can modify the node structure when SWMR is in use. * Quiets const warning in H5RS code (#1181) * Avoid calling H5Ropen_object with a misaligned H5R_ref_t: copy the (#1171) * Avoid calling H5Ropen_object with a misaligned H5R_ref_t: copy the raw H5R_ref_t bytes to a heap buffer that's known to have the right alignment. * Committing clang-format changes * Use an automatic H5R_ref_t instead of malloc'ing one. Go ahead and initialize the H5R_ref_t to all-0s so that arbitrary stack content doesn't foul things up. Bail out with an error if `size` exceeds `sizeof(H5R_ref_t)`. * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * Miscellaneous warnings fixes Co-authored-by: Dana Robinson <43805+derobins@users.noreply.github.com> Co-authored-by: David Young <dyoung@hdfgroup.org> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * Fix several warnings (#747) Co-authored-by: Dana Robinson <43805+derobins@users.noreply.github.com> Co-authored-by: David Young <dyoung@hdfgroup.org> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Hdf5 merge issue 458 v110 (#465)Larry Knox2021-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * close #195. (#196) * Update HDF5PluginMacros.cmake * Update HDF5PluginMacros.cmake * Modify temporary rpath for testing in java example scripts. (#230) * Fix undefined left shifting of negative numbers (#338) Undefined Bahavior Sanitizer errored here about left shifting negative numbers. * Update license url (#332) * Modify temporary rpath for testing in java example scripts. * Update URL in source file Copyright headers for web copy of COPYING file - src and test directories. * Applied clang-tidy readability-non-const-parameter warning fixes auto… (#429) * Automatically applied clang-tidy readability-avoid-const-params-in-decls fixes Removes useless const declarations. * Fixed most readability-non-const-parameter warnings These changes were made automatically by clang-tidy, but I manually reverted the changes related to the H5Z_func_t signature. * Reformat source with clang v10.0.1. Co-authored-by: Larry Knox <lrknox@hdfgroup.org> * Added C++11 override keyword where appropriate (#433) Added H5_OVERRIDE macro for compatibility with both C++11 and older. * Various clang tidy warning fixes (#448) * Fixed clang-tidy bugprone-reserved-identifier warnings * Fixed clang-tidy bugprone-assert-side-effect warnings * Fixed clang-tidy bugprone-copy-constructor-init warning * Fixed clang-tidy readability-redundant-preprocessor warning For error_test.c the removed code was already dead, because it was in the else of an `#if H5_USE_16_API` block. Based on H5Location.h, I think p_get_ref_obj_type was meant to be in `#ifndef DOXYGEN_SHOULD_SKIP_THIS` and an `#endif` was missing. Similarly, in the header, getObjTypeByIdx is only in H5_NO_DEPRECATED_SYMBOLS, not DOXYGEN_SHOULD_SKIP_THIS. * Fixed clang-tidy readability-redundant-string-init warnings * Fixed some clang-tidy performance-type-promotion-in-math-fn warnings * Fixed clang-tidy performance-unnecessary-value-param warnings * Reformat source with clang v10.0.1. Co-authored-by: Larry Knox <lrknox@hdfgroup.org> * Removed checks/workarounds for pre-C++89 compatibility (#449) After 30+ years, just assume that the following exist: - extension-less includes - namespaces - std:: - static_cast - bool * Fixed all clang-tidy bugprone-suspicious-string-compare warnings (#451) * Fixed all clang-tidy bugprone-suspicious-string-compare warnings This change was generated entirely by clang-tidy itself. * Reformat code with clang v10.0.1. Co-authored-by: Larry Knox <lrknox@hdfgroup.org> * Fix clang-tidy suspicious string compare in H5A.c missed in merge. Co-authored-by: H. Joe Lee <hyoklee@hdfgroup.org> Co-authored-by: Sean McBride <sean@rogue-research.com>
* 1 10 Merges from develop (#424)Allen Byrne2021-03-041-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * HDFFV-10865 - merge from dev, HDFArray perf fix. * Remove duplicate setting * Whitespace changes after clang format * Undo version 11 clang format changes * Merge CMake changes from develop * test testing script merge from develop * Update supported platforms * PR#3 merge from develop * Merge gcc 10 diagnostics option from develop * Merge #318 OSX changes from develop * Merge small changes from develop * Minor non-space formatting changes * #386 copyright corrections for java folder * Merges from develop #358 patches from vtk #361 fix header guard spelling * Merge updates #358 patches from vtk #361 fix header guard spelling * format fix * Fix missing underscore and make H5public.h closer to dev * Merges from develop #340 clang -Wformat-security warnings #360 Fixed uninitialized warnings header guard underscore cleanup JNI cleanup * format alignment * Add missing test ref file
* Hdf5 1 10 Update license url (#403)Larry Knox2021-03-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * close #195. (#196) * Update HDF5PluginMacros.cmake * Update HDF5PluginMacros.cmake * Modify temporary rpath for testing in java example scripts. (#230) * Fix undefined left shifting of negative numbers (#338) Undefined Bahavior Sanitizer errored here about left shifting negative numbers. * Update license url (#332) * Modify temporary rpath for testing in java example scripts. * Update URL in source file Copyright headers for web copy of COPYING file - src and test directories. Co-authored-by: H. Joe Lee <hyoklee@hdfgroup.org> Co-authored-by: Sean McBride <sean@rogue-research.com>
* Port PR #291 to 1.10 branch: Allow using virtual datasets in files opened ↵Neil Fortner2021-02-081-1/+29
| | | | | | | | | | with H5F_CLOSE_SEMI and H5F_CLOSE_STRONG (#323) * Modify VDS code to always open source files with H5F_CLOSE_WEAK close (#291) degree. Add test cases to VDS test for this, and reduce the amount of output from that test. * Run formatter on H5Dvirtual.c and test/vds.c
* Source formattedAllen Byrne2020-10-011-884/+957
|
* Merge of develop PRs to 1.10Dana Robinson2020-08-181-97/+107
|
* Minor normalizations with developDana Robinson2020-08-161-1/+1
|
* Merge of dataspace improvements from develop.Dana Robinson2020-07-161-5/+12
|
* Many normalizations with develop.Dana Robinson2020-05-301-8/+7
|
* Moved H5MM_memcpy and H5MM_xfree_const from developDana Robinson2020-05-151-3/+3
|
* Make corresponding changes for H5Sencode based on PR #1645 to develop branch.Vailin Choi2019-04-231-29/+6
| | | | The core changes are to revert previous modifications now that we use API context for fapl.
* Fix issue with direct chunk write not updating the "last chunk" indexNeil Fortner2019-03-191-0/+50
| | | | | cache. Fix issues involving datasets being "no allocated" when they contain cached raw data.
* Fixed HDFFV-10404Binh-Minh Ribler2018-07-261-2/+2
| | | | | | | | | 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
* Fix for HDFFV-10469: set to latest format for virtual layout encoding.Vailin Choi2018-05-171-4/+32
|
* Merge branch 'develop' into hdf5_1_10.syncM. Scot Breitenfeld2018-05-081-72/+205
|\
| * Merge branch 'develop' of https://bitbucket.hdfgroup.org/scm/hdffv/hdf5 into ↵Quincey Koziol2018-04-291-98/+237
| |\ | | | | | | | | | merge_hyperslab_updates
| | * Merge branch 'develop' of https://bitbucket.hdfgroup.org/scm/hdffv/hdf5 into ↵Quincey Koziol2018-03-181-45/+60
| | |\ | |_|/ |/| | | | | | | | | | | merge_func_enter_vol Plus initial steps toward merging API context push into FUNC_ENTER_API* macros
| | * Add API context interface and use it throughout the library.Quincey Koziol2018-03-151-50/+176
| | |
| * | Checkpoint normalization against incoming hyperslab / selection / dataspaceQuincey Koziol2017-03-281-8/+8
| | | | | | | | | | | | improvements.
* | | HDDFV-10361 combine duplicated prefix utility functionsAllen Byrne2018-01-051-284/+35
| | |
* | | HDFFV-9724 init var to nullAllen Byrne2017-12-291-1/+1
| | |
* | | HDFFV-9724 prefix of 0 length should be null valueAllen Byrne2017-12-291-1/+1
| | |
* | | HDFFV-9724 Corrected files and verified testsAllen Byrne2017-12-281-7/+264
| | |
* | | Revert "Merge pull request #826 in HDFFV/hdf5 from ~BYRN/hdf5_adb:develop to ↵lrknox2017-12-221-246/+7
| | | | | | | | | | | | | | | | | | | | | develop" This reverts commit b1223dd653e65e076af92b2dfe236f3704da81c8, reversing changes made to b25f123f5f5e25c1447a6a02861cb7c7265c12f2.
* | | HDFFV-9724 Copy efc_open search from Lextern_traverseAllen Byrne2017-12-151-19/+211
| | |
* | | HDFFV-9724 Initial changes and testAllen Byrne2017-12-111-9/+56
| |/ |/|
* | 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.
* Bring SWMR support in to the main development branch. (Finally!) More testsQuincey Koziol2016-12-021-1/+1
| | | | and the tool and API wrappers will be coming in over the weekend.
* Tentative fix for valgrind issues related to EoC.Dana Robinson2016-11-261-2/+2
| | | | | | | | | Adds /*out*/ parameters to H5O_close() and H5F_try_close() so that H5D/G_close() will know when H5O_close() has triggered a file close and thus the file struct is not reliable. Also removes the H5F_CLOSING() macro and related which were formerly used to check if the file was closing.
* [svn-r30075] Description:Quincey Koziol2016-06-141-0/+220
| | | | | | | | | | Bring object/dataset/group/named datatype features from revise_chunks branch to trunk. Also CMake support for h5format_convert and a bunch of misc. cleanups. Tested on: MacOSX/64 10.11.5 (amazon) w/serial, parallel & production (h5committest forthcoming)
* [svn-r29057] added dxpl type checking when debug mode is enabled ↵Mohamad Chaarawi2016-02-071-7/+8
| | | | | | (H5_DEBUG_BUILD) tested on bb-8 with Serial and Parallel, debug and production builds.
* [svn-r28797] Description:Quincey Koziol2016-01-051-5/+5
| | | | | | | | Clean up another round of memory allocation mis-matches. Tested on: Linux/32 2.6.x (jam) w/serial MacOSX/64 10.11.2 (amazon) w/serial & parallel
* [svn-r28606] Description:Quincey Koziol2015-12-131-4/+5
| | | | | | | | | | Revisions to normalize revise chunks vs. trunk, plus push dataset metadata changes into the cache immediately (instead of holding them within the dataset data structures). Tested on: MacOSX/64 10.11.2 (amazon) w/serial & parallel (h5committest not required on this branch)
* [svn-r28533] Fix loops in H5Dvirtual.c to only loop over used entries in VDS ↵Neil Fortner2015-12-071-3/+3
| | | | | | | | mapping list, instead of all allocated entries. Tested: ummon (too minor for full h5committest)
* [svn-r28452] Description:Quincey Koziol2015-11-231-1/+1
| | | | | | | | Normalization changes against revise_chunks branch. Tested on: MacOSX/64 10.11.1 (amazon) w/serial & parallel (h5committest forthcoming)
* [svn-r28311] Description:Quincey Koziol2015-11-091-0/+1
| | | | | | | | Add missing callback to virtual layout "class" structure. Tested on: MacOSX/64 10.11.1 (amazon) w/serial & parallel (Too minor to require h5committest)
* [svn-r27957] Description:Quincey Koziol2015-10-051-23/+12
| | | | | | | | Minor whitespace cleanups. Tested on: MacOSX/64 10.10.5 (amazon) w/serial & parallel (h5committest not required on this branch)
* [svn-r27944] Description:Quincey Koziol2015-10-041-6/+12
| | | | | | | | Avoid duplicating source FAPL & DAPL if they are already available. Tested on: MacOSX/64 10.10.5 (amazon) w/serial & parallel (h5committest not required on this branch)
* [svn-r27835] Description:Quincey Koziol2015-09-211-4/+6
| | | | | | | | Sync w/trunk. Tested on: MacOSX/64 10.10.5 (amazon) w/serial & parallel (h5committest not required on this branch)
* [svn-r27646] Add version number to VDS global heap object encoding.Neil Fortner2015-09-011-1/+1
| | | | | | | | | Fix handling of layout version number. Other minor fixes/cleanup. NOTE: This commit changes the file format for VDS, all files must be re-generated. Tested: ummon
* [svn-r27538] Add tests to cover remaining code coverage assertions in src ↵Neil Fortner2015-08-201-7/+2
| | | | | | | | directory except for those in H5Doh.c and H5Shyper.c. Tested: ummon
* [svn-r27528] Modify printf implementation to not open source datasets that ↵Neil Fortner2015-08-191-4/+12
| | | | | | | | were previously opened when calculating the VDS extent, instead assuming they still exist. Tested: ummon
* [svn-r27527] Add tests to hit code coverage assertions in H5Olayout.c.Neil Fortner2015-08-191-8/+10
| | | | | | Fix issue in VDS delete routine. Tested: ummon
* [svn-r27520] Add new test for all 3 selection types in the same VDS.Neil Fortner2015-08-181-7/+2
| | | | | | Minor cleanup in the tests. Tested: ummon
* [svn-r27506] H5Dset_extent no longer holds all printf source datasets open.Neil Fortner2015-08-141-4/+9
| | | | | | Other items identified during reviews. Tested: ummon
* [svn-r27505] Add support for H5Dset_extent for VDS.Neil Fortner2015-08-141-48/+151
| | | | | | | Add tests for this. Other bug fixes/cleanup Tested: Kubuntu 64 (home computer)
* [svn-r27504] Change comments/code around to reflect decision to have virtual ↵Neil Fortner2015-08-131-2/+6
| | | | | | | | datasets always return TRUE when their is_alloc function is called. Tested: ummon