summaryrefslogtreecommitdiffstats
path: root/src/H5FDsec2.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2017-05-27 15:24:46 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2017-05-27 15:24:46 (GMT)
commit56d23f00a7fbceea7ab7217eaeadc791c61b01e2 (patch)
tree6e002d8f2366917b876c1f20feebbb07d0245874 /src/H5FDsec2.c
parent9e75f7eeee5d52d35a8dcbffb6c1c18e1966d12b (diff)
parent13d3d4bd0e0b799aa9c3a9b45e445d1f52294d47 (diff)
downloadhdf5-56d23f00a7fbceea7ab7217eaeadc791c61b01e2.zip
hdf5-56d23f00a7fbceea7ab7217eaeadc791c61b01e2.tar.gz
hdf5-56d23f00a7fbceea7ab7217eaeadc791c61b01e2.tar.bz2
Merge pull request #548 in HDFFV/hdf5 from ~DEROBINS/hdf5_der:compat_feature_flag to develop
* commit '13d3d4bd0e0b799aa9c3a9b45e445d1f52294d47': Added feature flag checks for a few other VFDs in test/vfd.c. * Added new public H5FDdriver_query() API call. * Changed return type of H5FD_driver_query() to herr_t. * Updated swmr.c to use H5FDdriver_query() instead of the private call. * Added some flags tests to vfd.c. * Made H5FD_driver_query() a private function instead of static. * Moved H5FD_driver_query() to H5FDint.c. * Minor typo fixes in H5I.c. * Updated swmr.c to check the VFD feature flags and skip the retries test when the VFD is not compatible with H5P_DEFAULT. Initialized IDs to -1 and minor code tidy. Fixed HDFFV-10214: * Updated comments in the library to accurately reflect the semantics of the H5FD_FEAT_POSIX_COMPAT_HANDLE flag. * Removed the check for the POSIX compatible handle feature flag when determining if a VFD supports SWMR. Partial work for HDFFV-10197: * Added a new H5FD_FEAT_DEFAULT_VFD_COMPATIBLE feature flag that is set when a VFD creates output that is compatible with the default VFD. Will be used in the testing but might also be generally useful to users.
Diffstat (limited to 'src/H5FDsec2.c')
-rw-r--r--src/H5FDsec2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5FDsec2.c b/src/H5FDsec2.c
index 26913e2..b6385fb 100644
--- a/src/H5FDsec2.c
+++ b/src/H5FDsec2.c
@@ -527,8 +527,9 @@ H5FD_sec2_query(const H5FD_t *_file, unsigned long *flags /* out */)
*flags |= H5FD_FEAT_ACCUMULATE_METADATA; /* OK to accumulate metadata for faster writes */
*flags |= H5FD_FEAT_DATA_SIEVE; /* OK to perform data sieving for faster raw data reads & writes */
*flags |= H5FD_FEAT_AGGREGATE_SMALLDATA; /* OK to aggregate "small" raw data allocations */
- *flags |= H5FD_FEAT_POSIX_COMPAT_HANDLE; /* VFD handle is POSIX I/O call compatible */
+ *flags |= H5FD_FEAT_POSIX_COMPAT_HANDLE; /* get_handle callback returns a POSIX file descriptor */
*flags |= H5FD_FEAT_SUPPORTS_SWMR_IO; /* VFD supports the single-writer/multiple-readers (SWMR) pattern */
+ *flags |= H5FD_FEAT_DEFAULT_VFD_COMPATIBLE; /* VFD creates a file which can be opened with the default VFD */
/* Check for flags that are set by h5repart */
if(file && file->fam_to_sec2)