Commit Graph
20197 Commits
Author SHA1 Message Date
David Young 94de95266a Change hdset_reg_ref_t and H5R_ref_t from arrays of unsigned char to
structs containing those arrays.  Encapsulating the arrays in this way
makes it easier to write and think about pointers to these types, casts
to/from these types, etc.

An interesting side-effect that we probably should *not* rely on is
that the struct-encapsulation changes the alignment so that some GCC
warnings about casts that increase the alignment requirement of the
operand go away.  Warnings like that have to be taken seriously:  I will
add -Werror=cast-align to the default compiler flags so that they stop
the build quickly.

GCC warnings led me to some surprising casts in test/trefer.c. I found
that it was possible to make many simplifications after introducing the
struct-encapsulation that I described, above.

In test objcopy_ref `same_file` is assigned but never used.  Delete it.
2019-12-09 14:58:22 -06:00
Jerome Soumagne 33f2948a61 H5R: fix H5Tconv to check for null references
Valid for both deprecated and non-deprecated references

Update test
2019-12-09 14:55:14 -06:00
Jerome Soumagne 5c97046501 Remove H5VL_NATIVE_FILE_GET_FILE_ID and add H5VL_OBJECT_GET_FILE
Remove H5F__get_file_id() and use only private routine instead
2019-12-09 14:55:03 -06:00
Chris Hogan 518f35d434 Merge pull request #2112 in HDFFV/hdf5 from ~CHOGAN/hdf5:chogan/1.12/10934_release_txt to hdf5_1_12
* commit 'b4f0d111f8c2da38521aa4d16686081d05791fce':
  Add RELEASE.txt entry for Jira 10934
2019-12-09 13:04:24 -06:00
Jerome Soumagne bc3312df8e Merge pull request #2114 in HDFFV/hdf5 from ~JSOUMAGNE/hdf5:hdf5-1_12-revert to hdf5_1_12
* commit '49fe497201bcefcd9beb01fe8fc2175974b73799':
  Revert "Merge branch 'hdf5_1_12' of https://bitbucket.hdfgroup.org/scm/hdffv/hdf5 into hdf5_1_12"
2019-12-09 13:00:07 -06:00
Jerome Soumagne 49fe497201 Revert "Merge branch 'hdf5_1_12' of https://bitbucket.hdfgroup.org/scm/hdffv/hdf5 into hdf5_1_12"
This reverts commit 9f9336a5bd, reversing
changes made to 437a1919e7.
2019-12-09 12:16:52 -06:00
Chris Hogan b4f0d111f8 Add RELEASE.txt entry for Jira 10934 2019-12-09 11:05:50 -06:00
Neil Fortner 18e9b4fcc2 Merge pull request #2104 in HDFFV/hdf5 from ~NFORTNE2/hdf5_naf:tmp_112_3 to hdf5_1_12
* commit 'afb6ae776b3c60b37898dae4ee93f8976da90d42':
  Add H5VL_MAP_OPTIONAL operation id (unused currently).
2019-12-06 17:57:06 -06:00
Neil Fortner ba39bc0891 Merge pull request #2103 in HDFFV/hdf5 from ~NFORTNE2/hdf5_naf:tmp_112_2 to hdf5_1_12
* commit 'aefd0cbc60eeed3319776f76f0cde889072cc31b':
  Implement support for using H5Dvlen_get_buf_size with non-native VOL connectors.
2019-12-06 17:56:38 -06:00
Neil Fortner e6fe4be39e Merge pull request #2102 in HDFFV/hdf5 from ~NFORTNE2/hdf5_naf:tmp_112 to hdf5_1_12
* commit '46a3961d086aa1d90fa8519792cf4c5e7fe2ae26':
  Add support for scalar dataspaces to H5Sproject_intersection.  Add checking for ank validity.
2019-12-06 17:56:16 -06:00
Neil Fortner afb6ae776b Add H5VL_MAP_OPTIONAL operation id (unused currently). 2019-12-06 16:45:32 -06:00
Neil Fortner aefd0cbc60 Implement support for using H5Dvlen_get_buf_size with
non-native VOL connectors.
2019-12-06 16:43:36 -06:00
Neil Fortner 46a3961d08 Add support for scalar dataspaces to H5Sproject_intersection. Add
checking for ank validity.
2019-12-06 16:41:09 -06:00
Neil Fortner 62e6349eab Merge pull request #2101 in HDFFV/hdf5 from ~NFORTNE2/hdf5_naf:tmp_112_5 to hdf5_1_12
* commit '47f6c293a78aaa92c80b327795b1f1a242ea30a5':
  Fix issues with using H5Pget_fill_value() with file datatypes retrieved from H5VLget_file_type().
2019-12-06 16:39:53 -06:00
Neil Fortner 347f5795bf Merge pull request #2096 in HDFFV/hdf5 from ~NFORTNE2/hdf5_naf:tmp_112 to hdf5_1_12
* commit '681d227e9ee7876922fb05e609db18425cb1630d':
  Fix issue where H5R__reopen_file did not make the file "post open" callback.
2019-12-06 16:39:38 -06:00
Neil Fortner c4b34cb649 Merge pull request #2100 in HDFFV/hdf5 from ~NFORTNE2/hdf5_naf:tmp_112_4 to hdf5_1_12
* commit '209a86de37497b160ff49b9956f58558194eee25':
  Fix missing free in H5T__ref_mem_read()
  Fix bugs in H5VL file comparison code.  Add short circuit success to H5VL_cmp_connector_cls().
  Implement file comparison VOL callback.  Other changes to allow references to work with non-native connectors.  There is a bug somewhere.
2019-12-06 16:39:21 -06:00
Neil Fortner 9d0ca45ebd Merge pull request #2099 in HDFFV/hdf5 from ~NFORTNE2/hdf5_naf:tmp_112_3 to hdf5_1_12
* commit '2b14a8fd7e9221e258f3a2ed6dd0f79a30d5221f':
  Add support for point selections to H5S_select_project_intersection.
2019-12-06 16:39:04 -06:00
Neil Fortner ca8195fbba Merge pull request #2097 in HDFFV/hdf5 from ~NFORTNE2/hdf5_naf:tmp_112_2 to hdf5_1_12
* commit 'd567b4569df6e00c05d4290c7edfdf499f7d138f':
  Add note to RELEASE.txt for H5Sselect_adjust.
  Move checking for zero offset in selection adjust calls to the selection callbacks.  This makes the procedure for checking it consistent across selection types and between _s and _u, ensures it is always is performed even when called within the H5S package, and removes the redundant check that would occur when callins H5S_select_adjust_s() from outside the H5S package.
  Replace H5Sselect_adjust_u() and H5Shyper_adjust_s() with H5Sselect_adjust.  Implement "adjust_s" callback for all selection types.  Add range checking to H5Sselect_adjust().
2019-12-06 16:38:49 -06:00
Neil Fortner 47f6c293a7 Fix issues with using H5Pget_fill_value() with file datatypes retrieved
from H5VLget_file_type().
2019-12-06 16:34:58 -06:00
Neil Fortner 209a86de37 Fix missing free in H5T__ref_mem_read() 2019-12-06 16:32:11 -06:00
Neil Fortner a5091c0013 Fix bugs in H5VL file comparison code. Add short circuit success to
H5VL_cmp_connector_cls().
2019-12-06 16:32:11 -06:00
Neil Fortner 07c337dc57 Implement file comparison VOL callback. Other changes to allow
references to work with non-native connectors.  There is a bug
somewhere.
2019-12-06 16:32:11 -06:00
Neil Fortner 2b14a8fd7e Add support for point selections to H5S_select_project_intersection. 2019-12-06 16:25:22 -06:00
Neil Fortner d567b4569d Add note to RELEASE.txt for H5Sselect_adjust. 2019-12-06 16:20:54 -06:00
Neil Fortner c40934d968 Move checking for zero offset in selection adjust calls to the selection callbacks. This makes the
procedure for checking it consistent across selection types and between
_s and _u, ensures it is always is performed even when called within the H5S package, and removes the redundant check that would occur when callins H5S_select_adjust_s() from outside the H5S package.
2019-12-06 16:12:47 -06:00
Neil Fortner 975eea7940 Replace H5Sselect_adjust_u() and H5Shyper_adjust_s() with
H5Sselect_adjust.  Implement "adjust_s" callback for all selection
types.  Add range checking to H5Sselect_adjust().
2019-12-06 16:12:47 -06:00
Richard Warren 9f9336a5bd Merge branch 'hdf5_1_12' of https://bitbucket.hdfgroup.org/scm/hdffv/hdf5 into hdf5_1_12 2019-12-06 16:50:47 -05:00
Richard Warren 0c06cfc6ef Merged HDFFV-10929_2GB_testing to hdf5_1_12 2019-12-06 16:42:36 -05:00
Neil Fortner 437a1919e7 Merge pull request #2095 in HDFFV/hdf5 from ~NFORTNE2/hdf5_naf:hdf5_1_12 to hdf5_1_12
* commit 'aaf67f1d3eceb9c214f013bdf1b3dc06b29bb174':
  Add RELEASE.txt note for H5Sselect_project_interesection
  Implement public H5Sselect_project_intersection().  Updated internal algorithm to (optionally) avoid sharing selection data structures. Tested internal code (including with valgrind) by setting VDS code to avoid sharing selection, has since been changed to share selection for performance, so this code is not yet tested in regression tests.  API has not been tested.
2019-12-06 15:02:54 -06:00
Neil Fortner 681d227e9e Fix issue where H5R__reopen_file did not make the file "post open"
callback.
2019-12-06 14:44:12 -06:00
Neil Fortner aaf67f1d3e Merge branch 'hdf5_1_12' of ssh://bitbucket.hdfgroup.org:7999/~nfortne2/hdf5_naf into hdf5_1_12 2019-12-06 14:39:14 -06:00
Neil Fortner 9191a09aa8 Add RELEASE.txt note for H5Sselect_project_interesection 2019-12-06 14:38:55 -06:00
Neil Fortner 33357092c4 Implement public H5Sselect_project_intersection(). Updated internal
algorithm to (optionally) avoid sharing selection data structures.
Tested internal code (including with valgrind) by setting VDS code to
avoid sharing selection, has since been changed to share selection for
performance, so this code is not yet tested in regression tests.  API
has not been tested.
2019-12-06 14:37:41 -06:00
Neil Fortner 5663e8d13f Merge pull request #2091 in HDFFV/hdf5 from ~NFORTNE2/hdf5_naf:hdf5_1_12 to hdf5_1_12
* commit '1b45a5c09f7f31dfc6920c3fe503b8e043e327a2':
  Add RELEASE.txt note for HVLget_file_type()
  Implement H5VLget_file_type() to return a copy of a datatype with the location set to be in a file.  Only meant to be used by VOL connectors. Implement H5VLpeek_connector_id() to support connectors querying their own IDs.  Fix app_ref with connector IDs in a couple places (external VOLs registered as default through ENV should be visible to the application).  Modify vlen and reference interfaces to work with arbitrary VOL connectors.  Implement file "post open" specific callback, to enable connectors to update their file structs after a wrap context has been set.
2019-12-06 14:37:03 -06:00
Neil Fortner 1b45a5c09f Add RELEASE.txt note for HVLget_file_type() 2019-12-06 14:21:55 -06:00
Neil Fortner 63282c1229 Implement H5VLget_file_type() to return a copy of a datatype with the
location set to be in a file.  Only meant to be used by VOL connectors.
Implement H5VLpeek_connector_id() to support connectors querying their
own IDs.  Fix app_ref with connector IDs in a couple places (external
VOLs registered as default through ENV should be visible to the
application).  Modify vlen and reference interfaces to work with
arbitrary VOL connectors.  Implement file "post open" specific
callback, to enable connectors to update their file structs after a
wrap context has been set.
2019-12-06 14:16:03 -06:00
Vailin Choi 17b8281ce4 Merge pull request #2080 in HDFFV/hdf5 from ~VCHOI/my_third_fork:bugfix/112_hyper_ver to hdf5_1_12
* commit '0f1be317c37ca04db263680e6f1fe4d97b937b39':
  More fixes for the PR: (1) Set the version for reference datatype message to H5O_DTYPE_VERSION_4. (2) The tests for the new reference types should work for V112 and beyond.
  Verify the decoded version for hyperslab selection.
2019-12-06 13:35:55 -06:00
Jordan Henderson e1136858f9 Merge pull request #2084 in HDFFV/hdf5 from ~JHENDERSON/hdf5:hdf5_1_12 to hdf5_1_12
* commit 'a7a70824e43e7ff722bbbd39866ac3eff9faa961':
  Add OAPL parameter to H5Rcreate_ APIs
2019-12-06 13:24:22 -06:00
Vailin Choi 0f1be317c3 More fixes for the PR:
(1) Set the version for reference datatype message to H5O_DTYPE_VERSION_4.
(2) The tests for the new reference types should work for V112 and beyond.
2019-12-06 12:17:30 -06:00
Jordan Henderson a7a70824e4 Add OAPL parameter to H5Rcreate_ APIs 2019-12-06 11:12:42 -06:00
Vailin Choi f3686baaf0 Verify the decoded version for hyperslab selection. 2019-12-05 16:09:49 -06:00
Chris Hogan 9d24eefaf7 Merge pull request #2069 in HDFFV/hdf5 from ~CHOGAN/hdf5:feature/1.12/issue_10934 to hdf5_1_12
* commit '6084fbad00b27e12902a340d8a0fcf0d0b9ad2f7':
  Add changes from PR 2049 to hdf5_1_12 branch
2019-12-03 17:00:59 -06:00
Chris Hogan 6084fbad00 Add changes from PR 2049 to hdf5_1_12 branch 2019-12-03 16:40:37 -06:00
Chris Hogan 62a831d2cb Merge pull request #2060 in HDFFV/hdf5 from ~CHOGAN/hdf5:feature/1.12/cx_lcpl to hdf5_1_12
* commit 'a88b14b003c3c00e2d64cefd66cff4d043b98a26':
  Check for both default LCPL values
  Use API context to store/retrieve LCPL and DCPL properties
2019-11-27 15:39:32 -06:00
Chris Hogan a88b14b003 Check for both default LCPL values 2019-11-27 12:26:40 -06:00
Chris Hogan 3aedc32b1c Use API context to store/retrieve LCPL and DCPL properties
Adding changes from PR 2029 to 1.12 branch.
2019-11-27 09:36:58 -06:00
Allen Byrne 4c1aca3272 Merge pull request #2051 in HDFFV/hdf5 from ~BYRN/hdf5_adb:hdf5_1_12 to hdf5_1_12
* commit 'beaf9104a84ddb041ac7b42a0d969f1920e21eed':
  Correct repo branch name
  HDFFV-10962 add VS2019 support
2019-11-20 08:24:51 -06:00
Allen Byrne beaf9104a8 Correct repo branch name 2019-11-18 15:42:00 -06:00
Allen Byrne 144e7a600c HDFFV-10962 add VS2019 support 2019-11-18 15:34:04 -06:00
Allen Byrne d82d2e981a Merge pull request #2039 in HDFFV/hdf5 from ~BYRN/hdf5_adb:hdf5_1_12 to hdf5_1_12
* commit 'e7af4596479e780956cf54e851529db10b6c6d25':
  Correct file extension
2019-11-15 16:00:59 -06:00