![]() |
HDF5 Last Updated on 2025-10-17
The HDF5 Field Guide
|
Functions | |
herr_t | H5FDdriver_query (hid_t driver_id, unsigned long *flags) |
Allows querying a VFD ID for features before the file is opened. | |
herr_t | H5FDonion_get_revision_count (const char *filename, hid_t fapl_id, uint64_t *revision_count) |
get the number of revisions | |
H5_DLL herr_t | H5FDsubfiling_get_file_mapping (hid_t file_id, char ***filenames, size_t *len) |
Retrieve the subfile names for an HDF5 file using the subfiling VFD. | |
Allows querying a VFD ID for features before the file is opened.
[in] | driver_id | Virtual File Driver (VFD) ID |
[out] | flags | VFD flags supported |
Queries a virtual file driver (VFD) for feature flags. Takes a VFD hid_t so it can be used before the file is opened. For example, this could be used to check if a VFD supports SWMR.
herr_t H5FDonion_get_revision_count | ( | const char * | filename, |
hid_t | fapl_id, | ||
uint64_t * | revision_count ) |
get the number of revisions
[in] | filename | The name of the onion file |
[in] | fapl_id | The ID of the file access property list |
[out] | revision_count | The number of revisions |
H5FDonion_get_revision_count() returns the number of revisions for an onion file. It takes the file name and file access property list that is set for the onion VFD driver.
Retrieve the subfile names for an HDF5 file using the subfiling VFD.
[in] | file_id | File identifier |
[out] | filenames | Pointer to an array of C strings containing the subfile names. Memory is allocated by the function and must be freed by the caller. |
[out] | len | Pointer to the number of subfiles in the filenames array. |
H5FDsubfiling_get_file_mapping() retrieves the names of all physical subfiles that collectively make up a logical HDF5 file using the subfiling Virtual File Driver (VFD). The subfiling VFD distributes file data across multiple subfiles to improve parallel I/O performance, particularly systems where metadata operations can become a bottleneck.
The function returns an array of subfile names corresponding to the physical files stored on the file system. Each MPI rank may be responsible for different subfiles, and this function provides visibility into which subfiles are associated with the calling rank.
Typical use cases include:
filenames
array, and then call H5free_memory() on the filenames
array itself: