2003-04-01 02:30:57 +08:00
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
2007-02-07 22:56:24 +08:00
|
|
|
* Copyright by The HDF Group. *
|
2003-04-01 02:30:57 +08:00
|
|
|
* Copyright by the Board of Trustees of the University of Illinois. *
|
|
|
|
* All rights reserved. *
|
|
|
|
* *
|
|
|
|
* This file is part of HDF5. The full HDF5 copyright notice, including *
|
|
|
|
* terms governing use, modification, and redistribution, is contained in *
|
2017-04-18 03:32:16 +08:00
|
|
|
* the COPYING file, which can be found at the root of the source code *
|
2021-02-17 22:52:04 +08:00
|
|
|
* distribution tree, or in https://www.hdfgroup.org/licenses. *
|
2017-04-18 03:32:16 +08:00
|
|
|
* If you do not have access to either file, you may request a copy from *
|
|
|
|
* help@hdfgroup.org. *
|
2003-04-01 02:30:57 +08:00
|
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
|
|
|
1997-09-20 00:36:59 +08:00
|
|
|
/*
|
2020-08-07 04:56:04 +08:00
|
|
|
* Programmer: Robb Matzke
|
1997-09-20 00:36:59 +08:00
|
|
|
* Thursday, September 18, 1997
|
|
|
|
*
|
1998-01-17 06:23:43 +08:00
|
|
|
* Purpose: This file contains declarations which are visible
|
|
|
|
* only within the H5G package. Source files outside the
|
|
|
|
* H5G package should include H5Gprivate.h instead.
|
1997-09-20 00:36:59 +08:00
|
|
|
*/
|
2015-09-14 11:58:59 +08:00
|
|
|
#if !(defined H5G_FRIEND || defined H5G_MODULE)
|
1997-09-20 00:36:59 +08:00
|
|
|
#error "Do not include this file outside the H5G package!"
|
|
|
|
#endif
|
|
|
|
|
2021-02-23 12:29:56 +08:00
|
|
|
#ifndef H5Gpkg_H
|
|
|
|
#define H5Gpkg_H
|
1997-09-20 00:36:59 +08:00
|
|
|
|
2003-05-16 03:22:33 +08:00
|
|
|
/* Get package's private header */
|
2001-04-06 01:29:14 +08:00
|
|
|
#include "H5Gprivate.h"
|
1997-09-20 00:36:59 +08:00
|
|
|
|
2003-05-16 03:22:33 +08:00
|
|
|
/* Other private headers needed by this file */
|
2020-09-30 22:27:10 +08:00
|
|
|
#include "H5B2private.h" /* v2 B-trees */
|
|
|
|
#include "H5FLprivate.h" /* Free Lists */
|
|
|
|
#include "H5HFprivate.h" /* Fractal heaps */
|
|
|
|
#include "H5HLprivate.h" /* Local Heaps */
|
|
|
|
#include "H5Oprivate.h" /* Object headers */
|
|
|
|
#include "H5SLprivate.h" /* Skip lists */
|
2005-11-07 11:13:53 +08:00
|
|
|
|
2006-10-31 04:03:46 +08:00
|
|
|
/**************************/
|
|
|
|
/* Package Private Macros */
|
|
|
|
/**************************/
|
|
|
|
|
2006-10-02 18:24:03 +08:00
|
|
|
/* Standard length of fractal heap ID for link */
|
2020-09-30 22:27:10 +08:00
|
|
|
#define H5G_DENSE_FHEAP_ID_LEN 7
|
2005-11-15 10:55:39 +08:00
|
|
|
|
[svn-r18917] Description:
Bring r18911 (plus some adaptions to match the code on the trunk)
from the metadata journaling "merging" branch to the trunk:
More general changes to align trunk with eventual changes from
metadata journaling branch.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-28 04:27:13 +08:00
|
|
|
/* Size of a symbol table node on disk */
|
2020-09-30 22:27:10 +08:00
|
|
|
#define H5G_NODE_SIZE(f) \
|
|
|
|
( /* General metadata fields */ \
|
|
|
|
H5_SIZEOF_MAGIC /*magic number */ \
|
|
|
|
+ 1 /* Version */ \
|
|
|
|
+ 1 /* Reserved */ \
|
|
|
|
+ 2 /* Number of symbols */ \
|
|
|
|
\
|
|
|
|
/* Entries */ \
|
|
|
|
+ ((2 * H5F_SYM_LEAF_K(f)) * (unsigned)H5G_SIZEOF_ENTRY_FILE(f)))
|
[svn-r18917] Description:
Bring r18911 (plus some adaptions to match the code on the trunk)
from the metadata journaling "merging" branch to the trunk:
More general changes to align trunk with eventual changes from
metadata journaling branch.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Mac OS X/32 10.6.3 (amazon) in debug mode
Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2010-05-28 04:27:13 +08:00
|
|
|
|
2006-10-31 04:03:46 +08:00
|
|
|
/****************************/
|
|
|
|
/* Package Private Typedefs */
|
|
|
|
/****************************/
|
|
|
|
|
2005-11-15 10:55:39 +08:00
|
|
|
/*
|
|
|
|
* Various types of object header information can be cached in a symbol
|
|
|
|
* table entry (it's normal home is the object header to which the entry
|
|
|
|
* points). This datatype determines what (if anything) is cached in the
|
|
|
|
* symbol table entry.
|
|
|
|
*/
|
2006-11-28 02:00:08 +08:00
|
|
|
typedef enum H5G_cache_type_t {
|
2020-09-30 22:27:10 +08:00
|
|
|
H5G_CACHED_ERROR = -1, /*force enum to be signed */
|
|
|
|
H5G_NOTHING_CACHED = 0, /*nothing is cached, must be 0 */
|
|
|
|
H5G_CACHED_STAB = 1, /*symbol table, `stab' */
|
|
|
|
H5G_CACHED_SLINK = 2, /*symbolic link */
|
2005-11-15 10:55:39 +08:00
|
|
|
|
2020-09-30 22:27:10 +08:00
|
|
|
H5G_NCACHED /*THIS MUST BE LAST */
|
2006-11-28 02:00:08 +08:00
|
|
|
} H5G_cache_type_t;
|
2005-11-15 10:55:39 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* A symbol table entry caches these parameters from object header
|
|
|
|
* messages... The values are entered into the symbol table when an object
|
|
|
|
* header is created (by hand) and are extracted from the symbol table with a
|
|
|
|
* callback function registered in H5O_init_interface(). Be sure to update
|
2012-02-10 10:16:52 +08:00
|
|
|
* H5G_ent_decode(), H5G_ent_encode(), and H5G__ent_debug() as well.
|
2005-11-15 10:55:39 +08:00
|
|
|
*/
|
|
|
|
typedef union H5G_cache_t {
|
|
|
|
struct {
|
2020-09-30 22:27:10 +08:00
|
|
|
haddr_t btree_addr; /*file address of symbol table B-tree*/
|
|
|
|
haddr_t heap_addr; /*file address of stab name heap */
|
2005-11-15 10:55:39 +08:00
|
|
|
} stab;
|
|
|
|
|
|
|
|
struct {
|
2020-09-30 22:27:10 +08:00
|
|
|
size_t lval_offset; /*link value offset */
|
2005-11-15 10:55:39 +08:00
|
|
|
} slink;
|
|
|
|
} H5G_cache_t;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* A symbol table entry. The two important fields are `name_off' and
|
|
|
|
* `header'. The remaining fields are used for caching information that
|
|
|
|
* also appears in the object header to which this symbol table entry
|
|
|
|
* points.
|
|
|
|
*/
|
2009-03-24 02:51:29 +08:00
|
|
|
struct H5G_entry_t {
|
2020-09-30 22:27:10 +08:00
|
|
|
H5G_cache_type_t type; /*type of information cached */
|
|
|
|
H5G_cache_t cache; /*cached data from object header */
|
|
|
|
size_t name_off; /*offset of name within name heap */
|
|
|
|
haddr_t header; /*file address of object header */
|
2009-03-24 02:51:29 +08:00
|
|
|
};
|
1998-01-23 00:41:32 +08:00
|
|
|
|
[svn-r15800] Description:
Bring file free space branch changes through r15795 into trunk, which
includes a fair bit of code cleanup & rearrangement along with a couple of
bug fixes also.
Tested on:
Mac OS X/32 10.5.5 (amazon) in debug mode
Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-10-07 12:17:35 +08:00
|
|
|
/*
|
|
|
|
* A symbol table node is a collection of symbol table entries. It can
|
|
|
|
* be thought of as the lowest level of the B-link tree that points to
|
|
|
|
* a collection of symbol table entries that belong to a specific symbol
|
|
|
|
* table or group.
|
|
|
|
*/
|
|
|
|
typedef struct H5G_node_t {
|
2020-09-30 22:27:10 +08:00
|
|
|
H5AC_info_t cache_info; /* Information for H5AC cache functions, _must_ be */
|
|
|
|
/* first field in structure */
|
|
|
|
size_t node_size; /* Size of node on disk */
|
|
|
|
unsigned nsyms; /* Number of symbols */
|
|
|
|
H5G_entry_t *entry; /* Array of symbol table entries */
|
[svn-r15800] Description:
Bring file free space branch changes through r15795 into trunk, which
includes a fair bit of code cleanup & rearrangement along with a couple of
bug fixes also.
Tested on:
Mac OS X/32 10.5.5 (amazon) in debug mode
Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-10-07 12:17:35 +08:00
|
|
|
} H5G_node_t;
|
|
|
|
|
[svn-r9329]
Purpose:
Feature
Description:
Datatypes and groups now use H5FO "file object" code that was previously
only used by datasets. These objects will hold a file open if the file
is closed but they have not yet been closed. If these objects are unlinked
then relinked, they will not be destroyed. If they are opened twice (even
by two different names), both IDs will "see" changes made to the object
using the other ID.
When an object is opened using two different names (e.g., if a dataset was
opened under one name, then mounted and opened under its new name), calling
H5Iget_name() on a given hid_t will return the name used to open that hid_t,
not the current name of the object (this is a feature, and a change from the
previous behavior of datasets).
Solution:
Used H5FO code that was already in place for datasets. Broke H5D_t's, H5T_t's,
and H5G_t's into a "shared" struct and a private struct. The shared structs
(H5D_shared_t, etc.) hold the object's information and are used by all IDs
that point to a given object in the file. The private structs are pointed
to by the hid_t and contain the object's group entry information (including its
name) and a pointer to the shared struct for that object.
This changed the naming of structs throughout the library (e.g., datatype->size
is now datatype->shared->size). I added an updated H5Tinit.c to windows.zip.
Platforms tested:
Visual Studio 7, sleipnir, arabica, verbena
Misc. update:
2004-09-29 03:04:19 +08:00
|
|
|
/*
|
2005-07-21 22:48:26 +08:00
|
|
|
* Shared information for all open group objects
|
[svn-r9329]
Purpose:
Feature
Description:
Datatypes and groups now use H5FO "file object" code that was previously
only used by datasets. These objects will hold a file open if the file
is closed but they have not yet been closed. If these objects are unlinked
then relinked, they will not be destroyed. If they are opened twice (even
by two different names), both IDs will "see" changes made to the object
using the other ID.
When an object is opened using two different names (e.g., if a dataset was
opened under one name, then mounted and opened under its new name), calling
H5Iget_name() on a given hid_t will return the name used to open that hid_t,
not the current name of the object (this is a feature, and a change from the
previous behavior of datasets).
Solution:
Used H5FO code that was already in place for datasets. Broke H5D_t's, H5T_t's,
and H5G_t's into a "shared" struct and a private struct. The shared structs
(H5D_shared_t, etc.) hold the object's information and are used by all IDs
that point to a given object in the file. The private structs are pointed
to by the hid_t and contain the object's group entry information (including its
name) and a pointer to the shared struct for that object.
This changed the naming of structs throughout the library (e.g., datatype->size
is now datatype->shared->size). I added an updated H5Tinit.c to windows.zip.
Platforms tested:
Visual Studio 7, sleipnir, arabica, verbena
Misc. update:
2004-09-29 03:04:19 +08:00
|
|
|
*/
|
|
|
|
struct H5G_shared_t {
|
2020-09-30 22:27:10 +08:00
|
|
|
int fo_count; /* open file object count */
|
|
|
|
hbool_t mounted; /* Group is mount point */
|
[svn-r9329]
Purpose:
Feature
Description:
Datatypes and groups now use H5FO "file object" code that was previously
only used by datasets. These objects will hold a file open if the file
is closed but they have not yet been closed. If these objects are unlinked
then relinked, they will not be destroyed. If they are opened twice (even
by two different names), both IDs will "see" changes made to the object
using the other ID.
When an object is opened using two different names (e.g., if a dataset was
opened under one name, then mounted and opened under its new name), calling
H5Iget_name() on a given hid_t will return the name used to open that hid_t,
not the current name of the object (this is a feature, and a change from the
previous behavior of datasets).
Solution:
Used H5FO code that was already in place for datasets. Broke H5D_t's, H5T_t's,
and H5G_t's into a "shared" struct and a private struct. The shared structs
(H5D_shared_t, etc.) hold the object's information and are used by all IDs
that point to a given object in the file. The private structs are pointed
to by the hid_t and contain the object's group entry information (including its
name) and a pointer to the shared struct for that object.
This changed the naming of structs throughout the library (e.g., datatype->size
is now datatype->shared->size). I added an updated H5Tinit.c to windows.zip.
Platforms tested:
Visual Studio 7, sleipnir, arabica, verbena
Misc. update:
2004-09-29 03:04:19 +08:00
|
|
|
};
|
|
|
|
|
1998-01-06 11:07:15 +08:00
|
|
|
/*
|
|
|
|
* A group handle passed around through layers of the library within and
|
|
|
|
* above the H5G layer.
|
|
|
|
*/
|
|
|
|
struct H5G_t {
|
2020-09-30 22:27:10 +08:00
|
|
|
H5G_shared_t *shared; /* Shared file object data */
|
|
|
|
H5O_loc_t oloc; /* Object location for group */
|
|
|
|
H5G_name_t path; /* Group hierarchy path */
|
1998-01-06 11:07:15 +08:00
|
|
|
};
|
|
|
|
|
2006-10-02 18:24:03 +08:00
|
|
|
/* Link iteration operator for internal library callbacks */
|
|
|
|
typedef herr_t (*H5G_lib_iterate_t)(const H5O_link_t *lnk, void *op_data);
|
|
|
|
|
2006-11-20 23:23:29 +08:00
|
|
|
/* Data structure to hold table of links for a group */
|
|
|
|
typedef struct {
|
2020-09-30 22:27:10 +08:00
|
|
|
size_t nlinks; /* # of links in table */
|
|
|
|
H5O_link_t *lnks; /* Pointer to array of links */
|
2006-11-20 23:23:29 +08:00
|
|
|
} H5G_link_table_t;
|
|
|
|
|
1997-09-20 00:36:59 +08:00
|
|
|
/*
|
2005-09-12 22:29:54 +08:00
|
|
|
* Common data exchange structure for symbol table nodes. This structure is
|
1997-09-20 00:36:59 +08:00
|
|
|
* passed through the B-link tree layer to the methods for the objects
|
|
|
|
* to which the B-link tree points.
|
2006-11-20 23:23:29 +08:00
|
|
|
*
|
|
|
|
* It's also used for B-tree iterators which require no additional info.
|
|
|
|
*
|
1997-09-20 00:36:59 +08:00
|
|
|
*/
|
2006-11-20 23:23:29 +08:00
|
|
|
typedef struct H5G_bt_common_t {
|
1998-01-17 06:23:43 +08:00
|
|
|
/* downward */
|
2020-09-30 22:27:10 +08:00
|
|
|
const char *name; /*points to temporary memory */
|
|
|
|
H5HL_t * heap; /*symbol table heap */
|
2006-11-20 23:23:29 +08:00
|
|
|
} H5G_bt_common_t;
|
2005-09-12 22:29:54 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Data exchange structure for symbol table nodes. This structure is
|
2005-11-15 10:55:39 +08:00
|
|
|
* passed through the B-link tree layer to the insert method for entries.
|
2005-09-12 22:29:54 +08:00
|
|
|
*/
|
2006-11-20 23:23:29 +08:00
|
|
|
typedef struct H5G_bt_ins_t {
|
2005-09-12 22:29:54 +08:00
|
|
|
/* downward */
|
2020-09-30 22:27:10 +08:00
|
|
|
H5G_bt_common_t common; /* Common info for B-tree user data (must be first) */
|
|
|
|
const H5O_link_t *lnk; /* Link to insert into table */
|
|
|
|
H5O_type_t obj_type; /* Type of object being inserted */
|
|
|
|
const void * crt_info; /* Creation info for object being inserted */
|
2006-11-20 23:23:29 +08:00
|
|
|
} H5G_bt_ins_t;
|
1997-09-20 00:36:59 +08:00
|
|
|
|
2005-09-12 22:29:54 +08:00
|
|
|
/*
|
|
|
|
* Data exchange structure for symbol table nodes. This structure is
|
2006-11-20 23:23:29 +08:00
|
|
|
* passed through the B-link tree layer to the remove method for entries.
|
2005-09-12 22:29:54 +08:00
|
|
|
*/
|
2006-11-20 23:23:29 +08:00
|
|
|
typedef struct H5G_bt_rm_t {
|
2005-09-12 22:29:54 +08:00
|
|
|
/* downward */
|
2020-09-30 22:27:10 +08:00
|
|
|
H5G_bt_common_t common; /* Common info for B-tree user data (must be first) */
|
|
|
|
H5RS_str_t * grp_full_path_r; /* Full path of group where link is removed */
|
2006-11-20 23:23:29 +08:00
|
|
|
} H5G_bt_rm_t;
|
2005-09-12 22:29:54 +08:00
|
|
|
|
2005-11-15 10:55:39 +08:00
|
|
|
/* Typedef for B-tree 'find' operation */
|
2020-09-30 22:27:10 +08:00
|
|
|
typedef herr_t (*H5G_bt_find_op_t)(const H5G_entry_t *ent /*in*/, void *operator_data /*in,out*/);
|
2005-11-15 10:55:39 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Data exchange structure for symbol table nodes. This structure is
|
|
|
|
* passed through the B-link tree layer to the 'find' method for entries.
|
|
|
|
*/
|
2006-11-20 23:23:29 +08:00
|
|
|
typedef struct H5G_bt_lkp_t {
|
2005-11-15 10:55:39 +08:00
|
|
|
/* downward */
|
2020-09-30 22:27:10 +08:00
|
|
|
H5G_bt_common_t common; /* Common info for B-tree user data (must be first) */
|
|
|
|
H5G_bt_find_op_t op; /* Operator to call when correct entry is found */
|
|
|
|
void * op_data; /* Data to pass to operator */
|
2005-11-15 10:55:39 +08:00
|
|
|
|
|
|
|
/* upward */
|
2006-11-20 23:23:29 +08:00
|
|
|
} H5G_bt_lkp_t;
|
2005-11-15 10:55:39 +08:00
|
|
|
|
1997-09-20 00:36:59 +08:00
|
|
|
/*
|
|
|
|
* Data exchange structure to pass through the B-tree layer for the
|
1998-03-24 22:53:57 +08:00
|
|
|
* H5B_iterate function.
|
1997-09-20 00:36:59 +08:00
|
|
|
*/
|
2006-11-20 23:23:29 +08:00
|
|
|
typedef struct H5G_bt_it_it_t {
|
1998-01-17 06:23:43 +08:00
|
|
|
/* downward */
|
2020-09-30 22:27:10 +08:00
|
|
|
H5HL_t * heap; /*symbol table heap */
|
|
|
|
hsize_t skip; /*initial entries to skip */
|
|
|
|
H5G_lib_iterate_t op; /*iteration operator */
|
|
|
|
void * op_data; /*user-defined operator data */
|
1998-01-17 06:23:43 +08:00
|
|
|
|
|
|
|
/* upward */
|
2020-09-30 22:27:10 +08:00
|
|
|
hsize_t *final_ent; /*final entry looked at */
|
2006-11-20 23:23:29 +08:00
|
|
|
} H5G_bt_it_it_t;
|
1997-09-20 00:36:59 +08:00
|
|
|
|
2006-11-11 12:15:27 +08:00
|
|
|
/* Data passed through B-tree iteration for copying copy symbol table content */
|
|
|
|
typedef struct H5G_bt_it_cpy_t {
|
2020-09-30 22:27:10 +08:00
|
|
|
const H5O_loc_t * src_oloc; /* Source object location */
|
|
|
|
haddr_t src_heap_addr; /* Heap address of the source symbol table */
|
|
|
|
H5F_t * dst_file; /* File of destination group */
|
|
|
|
const H5O_stab_t *dst_stab; /* Symbol table message for destination group */
|
|
|
|
H5O_copy_t * cpy_info; /* Information for copy operation */
|
2006-11-11 12:15:27 +08:00
|
|
|
} H5G_bt_it_cpy_t;
|
|
|
|
|
|
|
|
/* Common information for "by index" lookups in symbol tables */
|
|
|
|
typedef struct H5G_bt_it_idx_common_t {
|
|
|
|
/* downward */
|
2020-09-30 22:27:10 +08:00
|
|
|
hsize_t idx; /* Index of group member to be queried */
|
|
|
|
hsize_t num_objs; /* The number of objects having been traversed */
|
|
|
|
H5G_bt_find_op_t op; /* Operator to call when correct entry is found */
|
2006-11-11 12:15:27 +08:00
|
|
|
} H5G_bt_it_idx_common_t;
|
|
|
|
|
2006-11-20 23:23:29 +08:00
|
|
|
/* Data passed through B-tree iteration for building a table of the links */
|
|
|
|
typedef struct H5G_bt_it_bt_t {
|
|
|
|
/* downward */
|
2020-09-30 22:27:10 +08:00
|
|
|
size_t alloc_nlinks; /* Number of links allocated in table */
|
|
|
|
H5HL_t *heap; /* Symbol table heap */
|
2006-11-20 23:23:29 +08:00
|
|
|
|
|
|
|
/* upward */
|
2020-09-30 22:27:10 +08:00
|
|
|
H5G_link_table_t *ltable; /* Link table to add information to */
|
2006-11-20 23:23:29 +08:00
|
|
|
} H5G_bt_it_bt_t;
|
2005-11-07 11:13:53 +08:00
|
|
|
|
2006-10-02 18:24:03 +08:00
|
|
|
/* Typedefs for "new format" groups */
|
|
|
|
/* (fractal heap & v2 B-tree info) */
|
|
|
|
|
|
|
|
/* Typedef for native 'name' field index records in the v2 B-tree */
|
2006-11-08 04:32:44 +08:00
|
|
|
/* (Keep 'id' field first so generic record handling in callbacks works) */
|
2006-10-02 18:24:03 +08:00
|
|
|
typedef struct H5G_dense_bt2_name_rec_t {
|
2020-09-30 22:27:10 +08:00
|
|
|
uint8_t id[H5G_DENSE_FHEAP_ID_LEN]; /* Heap ID for link */
|
|
|
|
uint32_t hash; /* Hash of 'name' field value */
|
2006-10-02 18:24:03 +08:00
|
|
|
} H5G_dense_bt2_name_rec_t;
|
|
|
|
|
2006-10-30 22:33:14 +08:00
|
|
|
/* Typedef for native 'creation order' field index records in the v2 B-tree */
|
2006-11-08 04:32:44 +08:00
|
|
|
/* (Keep 'id' field first so generic record handling in callbacks works) */
|
2006-10-30 22:33:14 +08:00
|
|
|
typedef struct H5G_dense_bt2_corder_rec_t {
|
|
|
|
uint8_t id[H5G_DENSE_FHEAP_ID_LEN]; /* Heap ID for link */
|
2006-11-11 12:15:27 +08:00
|
|
|
int64_t corder; /* 'creation order' field value */
|
2006-10-30 22:33:14 +08:00
|
|
|
} H5G_dense_bt2_corder_rec_t;
|
|
|
|
|
2006-10-02 18:24:03 +08:00
|
|
|
/*
|
|
|
|
* Common data exchange structure for dense link storage. This structure is
|
|
|
|
* passed through the v2 B-tree layer to the methods for the objects
|
|
|
|
* to which the v2 B-tree points.
|
|
|
|
*/
|
|
|
|
typedef struct H5G_bt2_ud_common_t {
|
|
|
|
/* downward */
|
2020-09-30 22:27:10 +08:00
|
|
|
H5F_t * f; /* Pointer to file that fractal heap is in */
|
|
|
|
H5HF_t * fheap; /* Fractal heap handle */
|
|
|
|
const char * name; /* Name of link to compare */
|
|
|
|
uint32_t name_hash; /* Hash of name of link to compare */
|
|
|
|
int64_t corder; /* Creation order value of link to compare */
|
|
|
|
H5B2_found_t found_op; /* Callback when correct link is found */
|
|
|
|
void * found_op_data; /* Callback data when correct link is found */
|
2006-10-02 18:24:03 +08:00
|
|
|
} H5G_bt2_ud_common_t;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Data exchange structure for dense link storage. This structure is
|
|
|
|
* passed through the v2 B-tree layer when inserting links.
|
|
|
|
*/
|
|
|
|
typedef struct H5G_bt2_ud_ins_t {
|
|
|
|
/* downward */
|
2020-09-30 22:27:10 +08:00
|
|
|
H5G_bt2_ud_common_t common; /* Common info for B-tree user data (must be first) */
|
|
|
|
uint8_t id[H5G_DENSE_FHEAP_ID_LEN]; /* Heap ID of link to insert */
|
2006-10-02 18:24:03 +08:00
|
|
|
} H5G_bt2_ud_ins_t;
|
|
|
|
|
2007-04-12 00:22:16 +08:00
|
|
|
/* Typedef for group creation operation */
|
2020-09-30 22:27:10 +08:00
|
|
|
typedef struct H5G_obj_create_t {
|
|
|
|
hid_t gcpl_id; /* Group creation property list */
|
2010-09-22 01:52:12 +08:00
|
|
|
H5G_cache_type_t cache_type; /* Type of symbol table entry cache */
|
2020-09-30 22:27:10 +08:00
|
|
|
H5G_cache_t cache; /* Cached data for symbol table entry */
|
2007-04-12 00:22:16 +08:00
|
|
|
} H5G_obj_create_t;
|
|
|
|
|
2010-09-22 01:52:12 +08:00
|
|
|
/* Callback information for copying groups */
|
|
|
|
typedef struct H5G_copy_file_ud_t {
|
2020-09-30 22:27:10 +08:00
|
|
|
H5O_copy_file_ud_common_t common; /* Shared information (must be first) */
|
|
|
|
H5G_cache_type_t cache_type; /* Type of symbol table entry cache */
|
|
|
|
H5G_cache_t cache; /* Cached data for symbol table entry */
|
2010-09-22 01:52:12 +08:00
|
|
|
} H5G_copy_file_ud_t;
|
|
|
|
|
2006-10-31 04:03:46 +08:00
|
|
|
/*****************************/
|
|
|
|
/* Package Private Variables */
|
|
|
|
/*****************************/
|
|
|
|
|
1997-09-20 00:36:59 +08:00
|
|
|
/*
|
|
|
|
* This is the class identifier to give to the B-tree functions.
|
|
|
|
*/
|
2002-09-21 04:36:09 +08:00
|
|
|
H5_DLLVAR H5B_class_t H5B_SNODE[1];
|
1997-09-20 00:36:59 +08:00
|
|
|
|
2006-10-31 04:03:46 +08:00
|
|
|
/* The v2 B-tree class for indexing 'name' field on links */
|
|
|
|
H5_DLLVAR const H5B2_class_t H5G_BT2_NAME[1];
|
|
|
|
|
|
|
|
/* The v2 B-tree class for indexing 'creation order' field on links */
|
|
|
|
H5_DLLVAR const H5B2_class_t H5G_BT2_CORDER[1];
|
|
|
|
|
2009-04-09 05:53:31 +08:00
|
|
|
/* Free list for managing H5G_t structs */
|
|
|
|
H5FL_EXTERN(H5G_t);
|
|
|
|
|
|
|
|
/* Free list for managing H5G_shared_t structs */
|
|
|
|
H5FL_EXTERN(H5G_shared_t);
|
|
|
|
|
2007-04-12 00:22:16 +08:00
|
|
|
/******************************/
|
|
|
|
/* Package Private Prototypes */
|
|
|
|
/******************************/
|
|
|
|
|
2005-11-15 10:55:39 +08:00
|
|
|
/*
|
2007-04-12 00:22:16 +08:00
|
|
|
* General group routines
|
|
|
|
*/
|
2018-03-16 05:54:30 +08:00
|
|
|
H5_DLL H5G_t *H5G__create(H5F_t *file, H5G_obj_create_t *gcrt_info);
|
2020-09-30 22:27:10 +08:00
|
|
|
H5_DLL H5G_t *H5G__create_named(const H5G_loc_t *loc, const char *name, hid_t lcpl_id, hid_t gcpl_id);
|
2018-03-16 05:54:30 +08:00
|
|
|
H5_DLL H5G_t *H5G__open_name(const H5G_loc_t *loc, const char *name);
|
2020-09-30 22:27:10 +08:00
|
|
|
H5_DLL herr_t H5G__get_info_by_name(const H5G_loc_t *loc, const char *name, H5G_info_t *grp_info);
|
|
|
|
H5_DLL herr_t H5G__get_info_by_idx(const H5G_loc_t *loc, const char *group_name, H5_index_t idx_type,
|
|
|
|
H5_iter_order_t order, hsize_t n, H5G_info_t *grp_info);
|
2007-04-12 00:22:16 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Group hierarchy traversal routines
|
2005-11-15 10:55:39 +08:00
|
|
|
*/
|
2020-09-30 22:27:10 +08:00
|
|
|
H5_DLL herr_t H5G__traverse_special(const H5G_loc_t *grp_loc, const H5O_link_t *lnk, unsigned target,
|
|
|
|
hbool_t last_comp, H5G_loc_t *obj_loc, hbool_t *obj_exists);
|
2005-11-15 10:55:39 +08:00
|
|
|
|
2007-04-12 00:22:16 +08:00
|
|
|
/*
|
|
|
|
* Utility functions
|
|
|
|
*/
|
2012-02-10 10:16:52 +08:00
|
|
|
H5_DLL const char *H5G__component(const char *name, size_t *size_p);
|
2006-10-31 04:03:46 +08:00
|
|
|
|
1997-09-20 00:36:59 +08:00
|
|
|
/*
|
1997-10-21 07:14:35 +08:00
|
|
|
* Functions that understand symbol tables but not names. The
|
|
|
|
* functions that understand names are exported to the rest of
|
1997-09-20 00:36:59 +08:00
|
|
|
* the library and appear in H5Gprivate.h.
|
|
|
|
*/
|
2020-09-30 22:27:10 +08:00
|
|
|
H5_DLL herr_t H5G__stab_create(H5O_loc_t *grp_oloc, const H5O_ginfo_t *ginfo, H5O_stab_t *stab);
|
2018-03-16 05:54:30 +08:00
|
|
|
H5_DLL herr_t H5G__stab_create_components(H5F_t *f, H5O_stab_t *stab, size_t size_hint);
|
2020-09-30 22:27:10 +08:00
|
|
|
H5_DLL herr_t H5G__stab_insert(const H5O_loc_t *grp_oloc, const char *name, H5O_link_t *obj_lnk,
|
|
|
|
H5O_type_t obj_type, const void *crt_info);
|
|
|
|
H5_DLL herr_t H5G__stab_insert_real(H5F_t *f, const H5O_stab_t *stab, const char *name, H5O_link_t *obj_lnk,
|
|
|
|
H5O_type_t obj_type, const void *crt_info);
|
2018-03-16 05:54:30 +08:00
|
|
|
H5_DLL herr_t H5G__stab_delete(H5F_t *f, const H5O_stab_t *stab);
|
2020-09-30 22:27:10 +08:00
|
|
|
H5_DLL herr_t H5G__stab_iterate(const H5O_loc_t *oloc, H5_iter_order_t order, hsize_t skip, hsize_t *last_lnk,
|
|
|
|
H5G_lib_iterate_t op, void *op_data);
|
2018-03-16 05:54:30 +08:00
|
|
|
H5_DLL herr_t H5G__stab_count(const struct H5O_loc_t *oloc, hsize_t *num_objs);
|
2020-09-30 22:27:10 +08:00
|
|
|
H5_DLL herr_t H5G__stab_bh_size(H5F_t *f, const H5O_stab_t *stab, H5_ih_info_t *bh_info);
|
|
|
|
H5_DLL ssize_t H5G__stab_get_name_by_idx(const H5O_loc_t *oloc, H5_iter_order_t order, hsize_t n, char *name,
|
|
|
|
size_t size);
|
|
|
|
H5_DLL herr_t H5G__stab_remove(const H5O_loc_t *oloc, H5RS_str_t *grp_full_path_r, const char *name);
|
|
|
|
H5_DLL herr_t H5G__stab_remove_by_idx(const H5O_loc_t *oloc, H5RS_str_t *grp_full_path_r,
|
|
|
|
H5_iter_order_t order, hsize_t n);
|
Bring async branch to develop (#166)
* Add H5Fwait, H5Dwait, and other changes for async vol connector
* Revert temporary testing changes
* Add H5Fwait to header file
* Add H5VLreset_lib_state() routine.
* Correct VOL wrap context when retrieving library state for file open & create.
* Manage the API context's VOL connector state as part of the library state.
* Set the 'VOL connector property valid' flag when restoring the library state.
* Don't push new API context on stack when retrieving "current" one.
* Check for NULL VOL wrap context before decrementing refcount on it, when
freeing the API context state.
* Manage recount of underlying connector for VOL wrap context.
* Add H5TSmutex_acquire() and H5TSmutex_release() routines to acquire and
release the global lock on the HDF5 library.
* Update library with new functions related to library global lock
* Add asynchronous token API
* Add new lightweight FUNC_ENTER / LEAVE macros for helping to structure the
threadsafety (H5TS*) routines.
* Sync w/develop
* Initial event set code framework.
* Elaborate on the H5ES routines, starting to add API routines.
Update the "close ID" callbacks to allow asynchronous request tokens to be
passed in from an asynchronous close API call.
Refactor current asynchronous API routines (H5Fopen/H5Fclose and
H5Dread/H5Dread) to use event sets instead of directly working with request
tokens from the application.
Clean up a few other minor warnings & code style issues.
* Implement H5EScreate, H5ESget_count, and H5ESclose.
It should be possible to write a simple application that creates an event
set and uses it with H5Fopen_async, H5Dread_async, H5Dwrite_async, and
H5Fclose_async, then calls H5ESclose (which waits for all async events to
complete).
* Add source file for event set test.
* Refactor sync & async API routines to call common routine.
Move dataset API read / write routines to src/H5D.c, along with all the other
API routines.
Progress on "fake" async VOL connector, for testing.
* Modify async implementation to wrap async requests in a H5VL_object_t
struct so the VOL layer can find the connector when accessing the
request at a later point.
* Free the requests is H5ESclose. Remove comments implying that request
wait, notify, and cancel callbacks should free the request.
* Fix bug in error handling in H5Fclose.
* Fix bugs in async file routines. Rename H5VL_create_object_generic to
H5VL_create_object.
* Add explicit async version of H5Fcreate.
* Add more _async routines
* Correct typo for return value from H5Awrite changes
* Add H5EStest and H5ESwait routines
* Updated with API tracing info
* Fix NULL pointer dereference in H5ES__wait
* Add H5is_library_terminating() routine, so that VOL connectors can detect
when the library is shutting down.
* Fix typo
* Remove event from event set's linked list
* Move block of code so that vol_obj is valid
* Avoid setting properties in the DXPL when reseting the library state (and in
the test code).
* Refactor argument tracing to implement new capability for tracing arguments
of non-API routines, with the H5ARG_TRACE macro. This macro is updated
automatically with the bin/trace script that runs as part of the autogen.sh
process. Major changes were in src/H5trace.c and bin/trace, with the other
changes being cleanups to the argument lists, to improve their presentation
in the tracing output.
Also - added the "managed string" routines, which can dynamically allocate
strings, appending printf-formatted output to the string efficiently.
* Release memory for managed strings
* Fix printf() formats.
* More printf() format fixes.
* Add H5Eappend_stack routine and regression tests
* Clean up a few missed merge conflicts and update the error stacks.
* Remove unnecessary fork() operations and ten second sleep().
* Restore commented out attribute out, to better enable tracking down the previous failure
* Allow multiple H5ARG_TRACE macros within a routine to be updated
* Switch to using "new" H5ES_insert (which takes the arguments for the caller routine) for all event set operations. Renames H5ES_insert_new to H5ES_insert and removes the previous H5ES_insert.
* Merge "managed" string routines into "ref-counted" strings, and refactor code to use them.
* Add missing file.
* Add caller's name and arguments to event, for error reporting
* Refactor event set setup for "API common" internal routines
* Checkin async API routines for H5A* and H5G* modules as listed in ID-283.
Fix couple h5dump expected output files due to the changes.
* Add some of the error query routines needed for event sets.
* Refactor to make async setup / teardown and "common" routines cleaner
* (1) Add async APIs to H5L, H5F, and H5D modules
(2) Fix errors in previous checkins of async APIs in H5A and H5G modules
(3) h5dump expected output changes
* Enhance event info, for better error handling
* Change name of temporary vol_obj variable, to help reduce coding errors
* Fix oversight with vol_obj pointer
* Minor code cleanup
* Add missing \'valid\' flag for VOL wrapper context, when restoring the library\'s state
* Run source formatter
* Change H5TSmutex lock and release to include a lock count
* Update error reporting ideas
* Minor updates to improve sanity checking for retrieving / restoring library state
* Updated with feedback from h5py team members
* Refactor internal event set list and event handling, add implementation for H5ESget_err_info
* Change the VOL request subclass callbacks that switch from using "H5ES_status_t" to "H5VL_request_status_t", and also add a H5VL_request_status_t* parameter to the 'cancel' callback in the request subclass. Also more code quality cleanups to add iterator callbacks to internal event set routines.
* Update API tracing for new H5VL_request_status_t typedef
* Finish converting internal event set operations to use list iterator callbacks, instead of directly accessing the list structure
* Add H5VL_REQUEST_GET_ERR_STACK operation to request subclass, for retrieving a copy of the error stack for a failed asynchronous operation
* Remove 'canceled' event status from Java constants
* Be safer about releasing resources when inserting a newly opened/created object or file into an event set
* Remove H5EStest, add H5ES_WAIT_NONE for 0 timeout, and revise parameters to H5ESwait, to make it more "aggregate".
* Remove H5ES_STATUS_CANCELED from Java wrappers also
* (a) Add async APIs for H5O module as listed in jira issue ID-283.
(b) Remove verification of name parameter in async related routines for H55A and H5L modules
because it is checked in H5VL_setup* routine.
(c) Modify h5dump expected output due to the async changes.
* Corrections based on PR feedback.
* Further changes to make based on PR feedback.
* Fix missed merge marker, and reformatted line
* Clean up some warnings
* Correct level of indirection
* Relocate prototype (and doxygen info) for H5Aclose
* Change non-static function declarations to be static
* Ensure that H5TSpublic.h header gets installed (#129)
* Add 'wrapper' versions of async calls, to allow language wrappers and layers on top of HDF5 to pass in their application information.
* Switch H5Aexists\*_async and H5Lexists\*_async to use flag to return status, instead of return value. Make the corresponding changes through most of the v1 and v2 B-tree code. Clean up warnings in H5public.h and cmpd_dtransform.c.
* Add H5Iregister_future routine and tests.
* Correct return value for H5Lexists_async
* Add H5_DLL macro to public H5ES API routines
* Update supported -> flags parameter for introspect_query callback
* Remove my email address. Update passthrough VOL connector ID.
* Fix comment for post_open_api_common
* Remove unused non-blocking VOL connector
* Minor cleanup in async branch in preparation for merge to develop
* Update CMake and the Autotools to use the new pass-through VOL ID
* Fix for SWMR daily test failures (#160)
The H5I_register_using_existing_id() call did not initialize the future
ID callbacks, causing the library to segfault when it tried to
resolve those function pointers.
* Added selective async APIs (#150)
* Added selective async APIs
Description:
Added the following APIs:
H5Ropen_attr_async
H5Ropen_object_async
H5Ropen_region_async
H5Mcreate_async
H5Mopen_async
H5Mput_async
H5Mget_async
H5Mclose_async
H5Tcommit_async
H5Topen_async
H5Tcopy_async
H5Tclose_async
- Updated an expected output file to include a new internal function
in the error stack for the failure case.
* Updated async APIs per reviews, including removing async version of
H5Tcopy.
* Removed statements that were added by mistake in the previous commit.
* Fix compile issues in H5M and warnings elsewhere
* Reformat code
* Brings VOL_LIST changes from develop. (#163)
Co-authored-by: Houjun Tang <htang4@lbl.gov>
Co-authored-by: Neil Fortner <nfortne2@hdfgroup.org>
Co-authored-by: vchoi <vchoi@jelly.ad.hdfgroup.org>
Co-authored-by: vchoi-hdfgroup <55293060+vchoi-hdfgroup@users.noreply.github.com>
Co-authored-by: jhendersonHDF <jhenderson@hdfgroup.org>
Co-authored-by: Dana Robinson <derobins@hdfgroup.org>
Co-authored-by: Dana Robinson <43805+derobins@users.noreply.github.com>
Co-authored-by: bmribler <39579120+bmribler@users.noreply.github.com>
2020-12-14 08:02:17 +08:00
|
|
|
H5_DLL herr_t H5G__stab_lookup(const H5O_loc_t *grp_oloc, const char *name, hbool_t *found, H5O_link_t *lnk);
|
2020-09-30 22:27:10 +08:00
|
|
|
H5_DLL herr_t H5G__stab_lookup_by_idx(const H5O_loc_t *grp_oloc, H5_iter_order_t order, hsize_t n,
|
|
|
|
H5O_link_t *lnk);
|
2009-03-24 02:51:29 +08:00
|
|
|
#ifndef H5_STRICT_FORMAT_CHECKS
|
2018-03-16 05:54:30 +08:00
|
|
|
H5_DLL herr_t H5G__stab_valid(H5O_loc_t *grp_oloc, H5O_stab_t *alt_stab);
|
2009-03-24 02:51:29 +08:00
|
|
|
#endif /* H5_STRICT_FORMAT_CHECKS */
|
1998-09-22 23:27:26 +08:00
|
|
|
|
1997-09-20 00:36:59 +08:00
|
|
|
/*
|
|
|
|
* Functions that understand symbol table entries.
|
|
|
|
*/
|
2020-09-30 22:27:10 +08:00
|
|
|
H5_DLL void H5G__ent_copy(H5G_entry_t *dst, const H5G_entry_t *src, H5_copy_depth_t depth);
|
|
|
|
H5_DLL void H5G__ent_reset(H5G_entry_t *ent);
|
|
|
|
H5_DLL herr_t H5G__ent_decode_vec(const H5F_t *f, const uint8_t **pp, const uint8_t *p_end, H5G_entry_t *ent,
|
|
|
|
unsigned n);
|
|
|
|
H5_DLL herr_t H5G__ent_encode_vec(const H5F_t *f, uint8_t **pp, const H5G_entry_t *ent, unsigned n);
|
|
|
|
H5_DLL herr_t H5G__ent_convert(H5F_t *f, H5HL_t *heap, const char *name, const H5O_link_t *lnk,
|
|
|
|
H5O_type_t obj_type, const void *crt_info, H5G_entry_t *ent);
|
|
|
|
H5_DLL herr_t H5G__ent_debug(const H5G_entry_t *ent, FILE *stream, int indent, int fwidth,
|
|
|
|
const H5HL_t *heap);
|
2001-10-16 03:36:48 +08:00
|
|
|
|
2002-04-24 00:01:43 +08:00
|
|
|
/* Functions that understand symbol table nodes */
|
2012-02-10 10:16:52 +08:00
|
|
|
H5_DLL herr_t H5G__node_init(H5F_t *f);
|
2020-09-30 22:27:10 +08:00
|
|
|
H5_DLL int H5G__node_iterate(H5F_t *f, const void *_lt_key, haddr_t addr, const void *_rt_key, void *_udata);
|
|
|
|
H5_DLL int H5G__node_sumup(H5F_t *f, const void *_lt_key, haddr_t addr, const void *_rt_key, void *_udata);
|
|
|
|
H5_DLL int H5G__node_by_idx(H5F_t *f, const void *_lt_key, haddr_t addr, const void *_rt_key, void *_udata);
|
|
|
|
H5_DLL int H5G__node_copy(H5F_t *f, const void *_lt_key, haddr_t addr, const void *_rt_key, void *_udata);
|
|
|
|
H5_DLL int H5G__node_build_table(H5F_t *f, const void *_lt_key, haddr_t addr, const void *_rt_key,
|
|
|
|
void *_udata);
|
|
|
|
H5_DLL herr_t H5G__node_iterate_size(H5F_t *f, const void *_lt_key, haddr_t addr, const void *_rt_key,
|
|
|
|
void *_udata);
|
2012-02-10 10:16:52 +08:00
|
|
|
H5_DLL herr_t H5G__node_free(H5G_node_t *sym);
|
2005-11-15 10:55:39 +08:00
|
|
|
|
2006-11-14 00:43:29 +08:00
|
|
|
/* Functions that understand links in groups */
|
2020-09-30 22:27:10 +08:00
|
|
|
H5_DLL herr_t H5G__ent_to_link(H5O_link_t *lnk, const H5HL_t *heap, const H5G_entry_t *ent, const char *name);
|
|
|
|
H5_DLL herr_t H5G__link_to_loc(const H5G_loc_t *grp_loc, const H5O_link_t *lnk, H5G_loc_t *obj_loc);
|
|
|
|
H5_DLL herr_t H5G__link_sort_table(H5G_link_table_t *ltable, H5_index_t idx_type, H5_iter_order_t order);
|
|
|
|
H5_DLL herr_t H5G__link_iterate_table(const H5G_link_table_t *ltable, hsize_t skip, hsize_t *last_lnk,
|
|
|
|
const H5G_lib_iterate_t op, void *op_data);
|
2012-02-10 10:16:52 +08:00
|
|
|
H5_DLL herr_t H5G__link_release_table(H5G_link_table_t *ltable);
|
2018-09-21 01:40:51 +08:00
|
|
|
H5_DLL herr_t H5G__link_name_replace(H5F_t *file, H5RS_str_t *grp_full_path_r, const H5O_link_t *lnk);
|
2006-11-14 00:43:29 +08:00
|
|
|
|
|
|
|
/* Functions that understand "compact" link storage */
|
2020-09-30 22:27:10 +08:00
|
|
|
H5_DLL herr_t H5G__compact_insert(const H5O_loc_t *grp_oloc, H5O_link_t *obj_lnk);
|
|
|
|
H5_DLL ssize_t H5G__compact_get_name_by_idx(const H5O_loc_t *oloc, const H5O_linfo_t *linfo,
|
|
|
|
H5_index_t idx_type, H5_iter_order_t order, hsize_t idx,
|
|
|
|
char *name, size_t size);
|
|
|
|
H5_DLL herr_t H5G__compact_remove(const H5O_loc_t *oloc, H5RS_str_t *grp_full_path_r, const char *name);
|
|
|
|
H5_DLL herr_t H5G__compact_remove_by_idx(const H5O_loc_t *oloc, const H5O_linfo_t *linfo,
|
|
|
|
H5RS_str_t *grp_full_path_r, H5_index_t idx_type,
|
|
|
|
H5_iter_order_t order, hsize_t n);
|
|
|
|
H5_DLL herr_t H5G__compact_iterate(const H5O_loc_t *oloc, const H5O_linfo_t *linfo, H5_index_t idx_type,
|
|
|
|
H5_iter_order_t order, hsize_t skip, hsize_t *last_lnk,
|
|
|
|
H5G_lib_iterate_t op, void *op_data);
|
Bring async branch to develop (#166)
* Add H5Fwait, H5Dwait, and other changes for async vol connector
* Revert temporary testing changes
* Add H5Fwait to header file
* Add H5VLreset_lib_state() routine.
* Correct VOL wrap context when retrieving library state for file open & create.
* Manage the API context's VOL connector state as part of the library state.
* Set the 'VOL connector property valid' flag when restoring the library state.
* Don't push new API context on stack when retrieving "current" one.
* Check for NULL VOL wrap context before decrementing refcount on it, when
freeing the API context state.
* Manage recount of underlying connector for VOL wrap context.
* Add H5TSmutex_acquire() and H5TSmutex_release() routines to acquire and
release the global lock on the HDF5 library.
* Update library with new functions related to library global lock
* Add asynchronous token API
* Add new lightweight FUNC_ENTER / LEAVE macros for helping to structure the
threadsafety (H5TS*) routines.
* Sync w/develop
* Initial event set code framework.
* Elaborate on the H5ES routines, starting to add API routines.
Update the "close ID" callbacks to allow asynchronous request tokens to be
passed in from an asynchronous close API call.
Refactor current asynchronous API routines (H5Fopen/H5Fclose and
H5Dread/H5Dread) to use event sets instead of directly working with request
tokens from the application.
Clean up a few other minor warnings & code style issues.
* Implement H5EScreate, H5ESget_count, and H5ESclose.
It should be possible to write a simple application that creates an event
set and uses it with H5Fopen_async, H5Dread_async, H5Dwrite_async, and
H5Fclose_async, then calls H5ESclose (which waits for all async events to
complete).
* Add source file for event set test.
* Refactor sync & async API routines to call common routine.
Move dataset API read / write routines to src/H5D.c, along with all the other
API routines.
Progress on "fake" async VOL connector, for testing.
* Modify async implementation to wrap async requests in a H5VL_object_t
struct so the VOL layer can find the connector when accessing the
request at a later point.
* Free the requests is H5ESclose. Remove comments implying that request
wait, notify, and cancel callbacks should free the request.
* Fix bug in error handling in H5Fclose.
* Fix bugs in async file routines. Rename H5VL_create_object_generic to
H5VL_create_object.
* Add explicit async version of H5Fcreate.
* Add more _async routines
* Correct typo for return value from H5Awrite changes
* Add H5EStest and H5ESwait routines
* Updated with API tracing info
* Fix NULL pointer dereference in H5ES__wait
* Add H5is_library_terminating() routine, so that VOL connectors can detect
when the library is shutting down.
* Fix typo
* Remove event from event set's linked list
* Move block of code so that vol_obj is valid
* Avoid setting properties in the DXPL when reseting the library state (and in
the test code).
* Refactor argument tracing to implement new capability for tracing arguments
of non-API routines, with the H5ARG_TRACE macro. This macro is updated
automatically with the bin/trace script that runs as part of the autogen.sh
process. Major changes were in src/H5trace.c and bin/trace, with the other
changes being cleanups to the argument lists, to improve their presentation
in the tracing output.
Also - added the "managed string" routines, which can dynamically allocate
strings, appending printf-formatted output to the string efficiently.
* Release memory for managed strings
* Fix printf() formats.
* More printf() format fixes.
* Add H5Eappend_stack routine and regression tests
* Clean up a few missed merge conflicts and update the error stacks.
* Remove unnecessary fork() operations and ten second sleep().
* Restore commented out attribute out, to better enable tracking down the previous failure
* Allow multiple H5ARG_TRACE macros within a routine to be updated
* Switch to using "new" H5ES_insert (which takes the arguments for the caller routine) for all event set operations. Renames H5ES_insert_new to H5ES_insert and removes the previous H5ES_insert.
* Merge "managed" string routines into "ref-counted" strings, and refactor code to use them.
* Add missing file.
* Add caller's name and arguments to event, for error reporting
* Refactor event set setup for "API common" internal routines
* Checkin async API routines for H5A* and H5G* modules as listed in ID-283.
Fix couple h5dump expected output files due to the changes.
* Add some of the error query routines needed for event sets.
* Refactor to make async setup / teardown and "common" routines cleaner
* (1) Add async APIs to H5L, H5F, and H5D modules
(2) Fix errors in previous checkins of async APIs in H5A and H5G modules
(3) h5dump expected output changes
* Enhance event info, for better error handling
* Change name of temporary vol_obj variable, to help reduce coding errors
* Fix oversight with vol_obj pointer
* Minor code cleanup
* Add missing \'valid\' flag for VOL wrapper context, when restoring the library\'s state
* Run source formatter
* Change H5TSmutex lock and release to include a lock count
* Update error reporting ideas
* Minor updates to improve sanity checking for retrieving / restoring library state
* Updated with feedback from h5py team members
* Refactor internal event set list and event handling, add implementation for H5ESget_err_info
* Change the VOL request subclass callbacks that switch from using "H5ES_status_t" to "H5VL_request_status_t", and also add a H5VL_request_status_t* parameter to the 'cancel' callback in the request subclass. Also more code quality cleanups to add iterator callbacks to internal event set routines.
* Update API tracing for new H5VL_request_status_t typedef
* Finish converting internal event set operations to use list iterator callbacks, instead of directly accessing the list structure
* Add H5VL_REQUEST_GET_ERR_STACK operation to request subclass, for retrieving a copy of the error stack for a failed asynchronous operation
* Remove 'canceled' event status from Java constants
* Be safer about releasing resources when inserting a newly opened/created object or file into an event set
* Remove H5EStest, add H5ES_WAIT_NONE for 0 timeout, and revise parameters to H5ESwait, to make it more "aggregate".
* Remove H5ES_STATUS_CANCELED from Java wrappers also
* (a) Add async APIs for H5O module as listed in jira issue ID-283.
(b) Remove verification of name parameter in async related routines for H55A and H5L modules
because it is checked in H5VL_setup* routine.
(c) Modify h5dump expected output due to the async changes.
* Corrections based on PR feedback.
* Further changes to make based on PR feedback.
* Fix missed merge marker, and reformatted line
* Clean up some warnings
* Correct level of indirection
* Relocate prototype (and doxygen info) for H5Aclose
* Change non-static function declarations to be static
* Ensure that H5TSpublic.h header gets installed (#129)
* Add 'wrapper' versions of async calls, to allow language wrappers and layers on top of HDF5 to pass in their application information.
* Switch H5Aexists\*_async and H5Lexists\*_async to use flag to return status, instead of return value. Make the corresponding changes through most of the v1 and v2 B-tree code. Clean up warnings in H5public.h and cmpd_dtransform.c.
* Add H5Iregister_future routine and tests.
* Correct return value for H5Lexists_async
* Add H5_DLL macro to public H5ES API routines
* Update supported -> flags parameter for introspect_query callback
* Remove my email address. Update passthrough VOL connector ID.
* Fix comment for post_open_api_common
* Remove unused non-blocking VOL connector
* Minor cleanup in async branch in preparation for merge to develop
* Update CMake and the Autotools to use the new pass-through VOL ID
* Fix for SWMR daily test failures (#160)
The H5I_register_using_existing_id() call did not initialize the future
ID callbacks, causing the library to segfault when it tried to
resolve those function pointers.
* Added selective async APIs (#150)
* Added selective async APIs
Description:
Added the following APIs:
H5Ropen_attr_async
H5Ropen_object_async
H5Ropen_region_async
H5Mcreate_async
H5Mopen_async
H5Mput_async
H5Mget_async
H5Mclose_async
H5Tcommit_async
H5Topen_async
H5Tcopy_async
H5Tclose_async
- Updated an expected output file to include a new internal function
in the error stack for the failure case.
* Updated async APIs per reviews, including removing async version of
H5Tcopy.
* Removed statements that were added by mistake in the previous commit.
* Fix compile issues in H5M and warnings elsewhere
* Reformat code
* Brings VOL_LIST changes from develop. (#163)
Co-authored-by: Houjun Tang <htang4@lbl.gov>
Co-authored-by: Neil Fortner <nfortne2@hdfgroup.org>
Co-authored-by: vchoi <vchoi@jelly.ad.hdfgroup.org>
Co-authored-by: vchoi-hdfgroup <55293060+vchoi-hdfgroup@users.noreply.github.com>
Co-authored-by: jhendersonHDF <jhenderson@hdfgroup.org>
Co-authored-by: Dana Robinson <derobins@hdfgroup.org>
Co-authored-by: Dana Robinson <43805+derobins@users.noreply.github.com>
Co-authored-by: bmribler <39579120+bmribler@users.noreply.github.com>
2020-12-14 08:02:17 +08:00
|
|
|
H5_DLL herr_t H5G__compact_lookup(const H5O_loc_t *grp_oloc, const char *name, hbool_t *found,
|
|
|
|
H5O_link_t *lnk);
|
2020-09-30 22:27:10 +08:00
|
|
|
H5_DLL herr_t H5G__compact_lookup_by_idx(const H5O_loc_t *oloc, const H5O_linfo_t *linfo, H5_index_t idx_type,
|
|
|
|
H5_iter_order_t order, hsize_t n, H5O_link_t *lnk);
|
2005-11-15 10:55:39 +08:00
|
|
|
|
2006-10-02 18:24:03 +08:00
|
|
|
/* Functions that understand "dense" link storage */
|
2020-09-30 22:27:10 +08:00
|
|
|
H5_DLL herr_t H5G__dense_build_table(H5F_t *f, const H5O_linfo_t *linfo, H5_index_t idx_type,
|
|
|
|
H5_iter_order_t order, H5G_link_table_t *ltable);
|
|
|
|
H5_DLL herr_t H5G__dense_create(H5F_t *f, H5O_linfo_t *linfo, const H5O_pline_t *pline);
|
|
|
|
H5_DLL herr_t H5G__dense_insert(H5F_t *f, const H5O_linfo_t *linfo, const H5O_link_t *lnk);
|
Bring async branch to develop (#166)
* Add H5Fwait, H5Dwait, and other changes for async vol connector
* Revert temporary testing changes
* Add H5Fwait to header file
* Add H5VLreset_lib_state() routine.
* Correct VOL wrap context when retrieving library state for file open & create.
* Manage the API context's VOL connector state as part of the library state.
* Set the 'VOL connector property valid' flag when restoring the library state.
* Don't push new API context on stack when retrieving "current" one.
* Check for NULL VOL wrap context before decrementing refcount on it, when
freeing the API context state.
* Manage recount of underlying connector for VOL wrap context.
* Add H5TSmutex_acquire() and H5TSmutex_release() routines to acquire and
release the global lock on the HDF5 library.
* Update library with new functions related to library global lock
* Add asynchronous token API
* Add new lightweight FUNC_ENTER / LEAVE macros for helping to structure the
threadsafety (H5TS*) routines.
* Sync w/develop
* Initial event set code framework.
* Elaborate on the H5ES routines, starting to add API routines.
Update the "close ID" callbacks to allow asynchronous request tokens to be
passed in from an asynchronous close API call.
Refactor current asynchronous API routines (H5Fopen/H5Fclose and
H5Dread/H5Dread) to use event sets instead of directly working with request
tokens from the application.
Clean up a few other minor warnings & code style issues.
* Implement H5EScreate, H5ESget_count, and H5ESclose.
It should be possible to write a simple application that creates an event
set and uses it with H5Fopen_async, H5Dread_async, H5Dwrite_async, and
H5Fclose_async, then calls H5ESclose (which waits for all async events to
complete).
* Add source file for event set test.
* Refactor sync & async API routines to call common routine.
Move dataset API read / write routines to src/H5D.c, along with all the other
API routines.
Progress on "fake" async VOL connector, for testing.
* Modify async implementation to wrap async requests in a H5VL_object_t
struct so the VOL layer can find the connector when accessing the
request at a later point.
* Free the requests is H5ESclose. Remove comments implying that request
wait, notify, and cancel callbacks should free the request.
* Fix bug in error handling in H5Fclose.
* Fix bugs in async file routines. Rename H5VL_create_object_generic to
H5VL_create_object.
* Add explicit async version of H5Fcreate.
* Add more _async routines
* Correct typo for return value from H5Awrite changes
* Add H5EStest and H5ESwait routines
* Updated with API tracing info
* Fix NULL pointer dereference in H5ES__wait
* Add H5is_library_terminating() routine, so that VOL connectors can detect
when the library is shutting down.
* Fix typo
* Remove event from event set's linked list
* Move block of code so that vol_obj is valid
* Avoid setting properties in the DXPL when reseting the library state (and in
the test code).
* Refactor argument tracing to implement new capability for tracing arguments
of non-API routines, with the H5ARG_TRACE macro. This macro is updated
automatically with the bin/trace script that runs as part of the autogen.sh
process. Major changes were in src/H5trace.c and bin/trace, with the other
changes being cleanups to the argument lists, to improve their presentation
in the tracing output.
Also - added the "managed string" routines, which can dynamically allocate
strings, appending printf-formatted output to the string efficiently.
* Release memory for managed strings
* Fix printf() formats.
* More printf() format fixes.
* Add H5Eappend_stack routine and regression tests
* Clean up a few missed merge conflicts and update the error stacks.
* Remove unnecessary fork() operations and ten second sleep().
* Restore commented out attribute out, to better enable tracking down the previous failure
* Allow multiple H5ARG_TRACE macros within a routine to be updated
* Switch to using "new" H5ES_insert (which takes the arguments for the caller routine) for all event set operations. Renames H5ES_insert_new to H5ES_insert and removes the previous H5ES_insert.
* Merge "managed" string routines into "ref-counted" strings, and refactor code to use them.
* Add missing file.
* Add caller's name and arguments to event, for error reporting
* Refactor event set setup for "API common" internal routines
* Checkin async API routines for H5A* and H5G* modules as listed in ID-283.
Fix couple h5dump expected output files due to the changes.
* Add some of the error query routines needed for event sets.
* Refactor to make async setup / teardown and "common" routines cleaner
* (1) Add async APIs to H5L, H5F, and H5D modules
(2) Fix errors in previous checkins of async APIs in H5A and H5G modules
(3) h5dump expected output changes
* Enhance event info, for better error handling
* Change name of temporary vol_obj variable, to help reduce coding errors
* Fix oversight with vol_obj pointer
* Minor code cleanup
* Add missing \'valid\' flag for VOL wrapper context, when restoring the library\'s state
* Run source formatter
* Change H5TSmutex lock and release to include a lock count
* Update error reporting ideas
* Minor updates to improve sanity checking for retrieving / restoring library state
* Updated with feedback from h5py team members
* Refactor internal event set list and event handling, add implementation for H5ESget_err_info
* Change the VOL request subclass callbacks that switch from using "H5ES_status_t" to "H5VL_request_status_t", and also add a H5VL_request_status_t* parameter to the 'cancel' callback in the request subclass. Also more code quality cleanups to add iterator callbacks to internal event set routines.
* Update API tracing for new H5VL_request_status_t typedef
* Finish converting internal event set operations to use list iterator callbacks, instead of directly accessing the list structure
* Add H5VL_REQUEST_GET_ERR_STACK operation to request subclass, for retrieving a copy of the error stack for a failed asynchronous operation
* Remove 'canceled' event status from Java constants
* Be safer about releasing resources when inserting a newly opened/created object or file into an event set
* Remove H5EStest, add H5ES_WAIT_NONE for 0 timeout, and revise parameters to H5ESwait, to make it more "aggregate".
* Remove H5ES_STATUS_CANCELED from Java wrappers also
* (a) Add async APIs for H5O module as listed in jira issue ID-283.
(b) Remove verification of name parameter in async related routines for H55A and H5L modules
because it is checked in H5VL_setup* routine.
(c) Modify h5dump expected output due to the async changes.
* Corrections based on PR feedback.
* Further changes to make based on PR feedback.
* Fix missed merge marker, and reformatted line
* Clean up some warnings
* Correct level of indirection
* Relocate prototype (and doxygen info) for H5Aclose
* Change non-static function declarations to be static
* Ensure that H5TSpublic.h header gets installed (#129)
* Add 'wrapper' versions of async calls, to allow language wrappers and layers on top of HDF5 to pass in their application information.
* Switch H5Aexists\*_async and H5Lexists\*_async to use flag to return status, instead of return value. Make the corresponding changes through most of the v1 and v2 B-tree code. Clean up warnings in H5public.h and cmpd_dtransform.c.
* Add H5Iregister_future routine and tests.
* Correct return value for H5Lexists_async
* Add H5_DLL macro to public H5ES API routines
* Update supported -> flags parameter for introspect_query callback
* Remove my email address. Update passthrough VOL connector ID.
* Fix comment for post_open_api_common
* Remove unused non-blocking VOL connector
* Minor cleanup in async branch in preparation for merge to develop
* Update CMake and the Autotools to use the new pass-through VOL ID
* Fix for SWMR daily test failures (#160)
The H5I_register_using_existing_id() call did not initialize the future
ID callbacks, causing the library to segfault when it tried to
resolve those function pointers.
* Added selective async APIs (#150)
* Added selective async APIs
Description:
Added the following APIs:
H5Ropen_attr_async
H5Ropen_object_async
H5Ropen_region_async
H5Mcreate_async
H5Mopen_async
H5Mput_async
H5Mget_async
H5Mclose_async
H5Tcommit_async
H5Topen_async
H5Tcopy_async
H5Tclose_async
- Updated an expected output file to include a new internal function
in the error stack for the failure case.
* Updated async APIs per reviews, including removing async version of
H5Tcopy.
* Removed statements that were added by mistake in the previous commit.
* Fix compile issues in H5M and warnings elsewhere
* Reformat code
* Brings VOL_LIST changes from develop. (#163)
Co-authored-by: Houjun Tang <htang4@lbl.gov>
Co-authored-by: Neil Fortner <nfortne2@hdfgroup.org>
Co-authored-by: vchoi <vchoi@jelly.ad.hdfgroup.org>
Co-authored-by: vchoi-hdfgroup <55293060+vchoi-hdfgroup@users.noreply.github.com>
Co-authored-by: jhendersonHDF <jhenderson@hdfgroup.org>
Co-authored-by: Dana Robinson <derobins@hdfgroup.org>
Co-authored-by: Dana Robinson <43805+derobins@users.noreply.github.com>
Co-authored-by: bmribler <39579120+bmribler@users.noreply.github.com>
2020-12-14 08:02:17 +08:00
|
|
|
H5_DLL herr_t H5G__dense_lookup(H5F_t *f, const H5O_linfo_t *linfo, const char *name, hbool_t *found,
|
|
|
|
H5O_link_t *lnk);
|
2020-09-30 22:27:10 +08:00
|
|
|
H5_DLL herr_t H5G__dense_lookup_by_idx(H5F_t *f, const H5O_linfo_t *linfo, H5_index_t idx_type,
|
|
|
|
H5_iter_order_t order, hsize_t n, H5O_link_t *lnk);
|
|
|
|
H5_DLL herr_t H5G__dense_iterate(H5F_t *f, const H5O_linfo_t *linfo, H5_index_t idx_type,
|
|
|
|
H5_iter_order_t order, hsize_t skip, hsize_t *last_lnk, H5G_lib_iterate_t op,
|
|
|
|
void *op_data);
|
|
|
|
H5_DLL ssize_t H5G__dense_get_name_by_idx(H5F_t *f, H5O_linfo_t *linfo, H5_index_t idx_type,
|
|
|
|
H5_iter_order_t order, hsize_t n, char *name, size_t size);
|
|
|
|
H5_DLL herr_t H5G__dense_remove(H5F_t *f, const H5O_linfo_t *linfo, H5RS_str_t *grp_full_path_r,
|
|
|
|
const char *name);
|
|
|
|
H5_DLL herr_t H5G__dense_remove_by_idx(H5F_t *f, const H5O_linfo_t *linfo, H5RS_str_t *grp_full_path_r,
|
|
|
|
H5_index_t idx_type, H5_iter_order_t order, hsize_t n);
|
|
|
|
H5_DLL herr_t H5G__dense_delete(H5F_t *f, H5O_linfo_t *linfo, hbool_t adj_link);
|
2006-10-02 18:24:03 +08:00
|
|
|
|
2006-11-14 00:43:29 +08:00
|
|
|
/* Functions that understand group objects */
|
2020-09-30 22:27:10 +08:00
|
|
|
H5_DLL herr_t H5G__obj_create(H5F_t *f, H5G_obj_create_t *gcrt_info, H5O_loc_t *oloc /*out*/);
|
|
|
|
H5_DLL herr_t H5G__obj_create_real(H5F_t *f, const H5O_ginfo_t *ginfo, const H5O_linfo_t *linfo,
|
|
|
|
const H5O_pline_t *pline, H5G_obj_create_t *gcrt_info,
|
|
|
|
H5O_loc_t *oloc /*out*/);
|
2018-03-16 05:54:30 +08:00
|
|
|
H5_DLL htri_t H5G__obj_get_linfo(const H5O_loc_t *grp_oloc, H5O_linfo_t *linfo);
|
2020-09-30 22:27:10 +08:00
|
|
|
H5_DLL herr_t H5G__obj_iterate(const H5O_loc_t *grp_oloc, H5_index_t idx_type, H5_iter_order_t order,
|
|
|
|
hsize_t skip, hsize_t *last_lnk, H5G_lib_iterate_t op, void *op_data);
|
2018-03-16 05:54:30 +08:00
|
|
|
H5_DLL herr_t H5G__obj_info(const H5O_loc_t *oloc, H5G_info_t *grp_info);
|
Bring async branch to develop (#166)
* Add H5Fwait, H5Dwait, and other changes for async vol connector
* Revert temporary testing changes
* Add H5Fwait to header file
* Add H5VLreset_lib_state() routine.
* Correct VOL wrap context when retrieving library state for file open & create.
* Manage the API context's VOL connector state as part of the library state.
* Set the 'VOL connector property valid' flag when restoring the library state.
* Don't push new API context on stack when retrieving "current" one.
* Check for NULL VOL wrap context before decrementing refcount on it, when
freeing the API context state.
* Manage recount of underlying connector for VOL wrap context.
* Add H5TSmutex_acquire() and H5TSmutex_release() routines to acquire and
release the global lock on the HDF5 library.
* Update library with new functions related to library global lock
* Add asynchronous token API
* Add new lightweight FUNC_ENTER / LEAVE macros for helping to structure the
threadsafety (H5TS*) routines.
* Sync w/develop
* Initial event set code framework.
* Elaborate on the H5ES routines, starting to add API routines.
Update the "close ID" callbacks to allow asynchronous request tokens to be
passed in from an asynchronous close API call.
Refactor current asynchronous API routines (H5Fopen/H5Fclose and
H5Dread/H5Dread) to use event sets instead of directly working with request
tokens from the application.
Clean up a few other minor warnings & code style issues.
* Implement H5EScreate, H5ESget_count, and H5ESclose.
It should be possible to write a simple application that creates an event
set and uses it with H5Fopen_async, H5Dread_async, H5Dwrite_async, and
H5Fclose_async, then calls H5ESclose (which waits for all async events to
complete).
* Add source file for event set test.
* Refactor sync & async API routines to call common routine.
Move dataset API read / write routines to src/H5D.c, along with all the other
API routines.
Progress on "fake" async VOL connector, for testing.
* Modify async implementation to wrap async requests in a H5VL_object_t
struct so the VOL layer can find the connector when accessing the
request at a later point.
* Free the requests is H5ESclose. Remove comments implying that request
wait, notify, and cancel callbacks should free the request.
* Fix bug in error handling in H5Fclose.
* Fix bugs in async file routines. Rename H5VL_create_object_generic to
H5VL_create_object.
* Add explicit async version of H5Fcreate.
* Add more _async routines
* Correct typo for return value from H5Awrite changes
* Add H5EStest and H5ESwait routines
* Updated with API tracing info
* Fix NULL pointer dereference in H5ES__wait
* Add H5is_library_terminating() routine, so that VOL connectors can detect
when the library is shutting down.
* Fix typo
* Remove event from event set's linked list
* Move block of code so that vol_obj is valid
* Avoid setting properties in the DXPL when reseting the library state (and in
the test code).
* Refactor argument tracing to implement new capability for tracing arguments
of non-API routines, with the H5ARG_TRACE macro. This macro is updated
automatically with the bin/trace script that runs as part of the autogen.sh
process. Major changes were in src/H5trace.c and bin/trace, with the other
changes being cleanups to the argument lists, to improve their presentation
in the tracing output.
Also - added the "managed string" routines, which can dynamically allocate
strings, appending printf-formatted output to the string efficiently.
* Release memory for managed strings
* Fix printf() formats.
* More printf() format fixes.
* Add H5Eappend_stack routine and regression tests
* Clean up a few missed merge conflicts and update the error stacks.
* Remove unnecessary fork() operations and ten second sleep().
* Restore commented out attribute out, to better enable tracking down the previous failure
* Allow multiple H5ARG_TRACE macros within a routine to be updated
* Switch to using "new" H5ES_insert (which takes the arguments for the caller routine) for all event set operations. Renames H5ES_insert_new to H5ES_insert and removes the previous H5ES_insert.
* Merge "managed" string routines into "ref-counted" strings, and refactor code to use them.
* Add missing file.
* Add caller's name and arguments to event, for error reporting
* Refactor event set setup for "API common" internal routines
* Checkin async API routines for H5A* and H5G* modules as listed in ID-283.
Fix couple h5dump expected output files due to the changes.
* Add some of the error query routines needed for event sets.
* Refactor to make async setup / teardown and "common" routines cleaner
* (1) Add async APIs to H5L, H5F, and H5D modules
(2) Fix errors in previous checkins of async APIs in H5A and H5G modules
(3) h5dump expected output changes
* Enhance event info, for better error handling
* Change name of temporary vol_obj variable, to help reduce coding errors
* Fix oversight with vol_obj pointer
* Minor code cleanup
* Add missing \'valid\' flag for VOL wrapper context, when restoring the library\'s state
* Run source formatter
* Change H5TSmutex lock and release to include a lock count
* Update error reporting ideas
* Minor updates to improve sanity checking for retrieving / restoring library state
* Updated with feedback from h5py team members
* Refactor internal event set list and event handling, add implementation for H5ESget_err_info
* Change the VOL request subclass callbacks that switch from using "H5ES_status_t" to "H5VL_request_status_t", and also add a H5VL_request_status_t* parameter to the 'cancel' callback in the request subclass. Also more code quality cleanups to add iterator callbacks to internal event set routines.
* Update API tracing for new H5VL_request_status_t typedef
* Finish converting internal event set operations to use list iterator callbacks, instead of directly accessing the list structure
* Add H5VL_REQUEST_GET_ERR_STACK operation to request subclass, for retrieving a copy of the error stack for a failed asynchronous operation
* Remove 'canceled' event status from Java constants
* Be safer about releasing resources when inserting a newly opened/created object or file into an event set
* Remove H5EStest, add H5ES_WAIT_NONE for 0 timeout, and revise parameters to H5ESwait, to make it more "aggregate".
* Remove H5ES_STATUS_CANCELED from Java wrappers also
* (a) Add async APIs for H5O module as listed in jira issue ID-283.
(b) Remove verification of name parameter in async related routines for H55A and H5L modules
because it is checked in H5VL_setup* routine.
(c) Modify h5dump expected output due to the async changes.
* Corrections based on PR feedback.
* Further changes to make based on PR feedback.
* Fix missed merge marker, and reformatted line
* Clean up some warnings
* Correct level of indirection
* Relocate prototype (and doxygen info) for H5Aclose
* Change non-static function declarations to be static
* Ensure that H5TSpublic.h header gets installed (#129)
* Add 'wrapper' versions of async calls, to allow language wrappers and layers on top of HDF5 to pass in their application information.
* Switch H5Aexists\*_async and H5Lexists\*_async to use flag to return status, instead of return value. Make the corresponding changes through most of the v1 and v2 B-tree code. Clean up warnings in H5public.h and cmpd_dtransform.c.
* Add H5Iregister_future routine and tests.
* Correct return value for H5Lexists_async
* Add H5_DLL macro to public H5ES API routines
* Update supported -> flags parameter for introspect_query callback
* Remove my email address. Update passthrough VOL connector ID.
* Fix comment for post_open_api_common
* Remove unused non-blocking VOL connector
* Minor cleanup in async branch in preparation for merge to develop
* Update CMake and the Autotools to use the new pass-through VOL ID
* Fix for SWMR daily test failures (#160)
The H5I_register_using_existing_id() call did not initialize the future
ID callbacks, causing the library to segfault when it tried to
resolve those function pointers.
* Added selective async APIs (#150)
* Added selective async APIs
Description:
Added the following APIs:
H5Ropen_attr_async
H5Ropen_object_async
H5Ropen_region_async
H5Mcreate_async
H5Mopen_async
H5Mput_async
H5Mget_async
H5Mclose_async
H5Tcommit_async
H5Topen_async
H5Tcopy_async
H5Tclose_async
- Updated an expected output file to include a new internal function
in the error stack for the failure case.
* Updated async APIs per reviews, including removing async version of
H5Tcopy.
* Removed statements that were added by mistake in the previous commit.
* Fix compile issues in H5M and warnings elsewhere
* Reformat code
* Brings VOL_LIST changes from develop. (#163)
Co-authored-by: Houjun Tang <htang4@lbl.gov>
Co-authored-by: Neil Fortner <nfortne2@hdfgroup.org>
Co-authored-by: vchoi <vchoi@jelly.ad.hdfgroup.org>
Co-authored-by: vchoi-hdfgroup <55293060+vchoi-hdfgroup@users.noreply.github.com>
Co-authored-by: jhendersonHDF <jhenderson@hdfgroup.org>
Co-authored-by: Dana Robinson <derobins@hdfgroup.org>
Co-authored-by: Dana Robinson <43805+derobins@users.noreply.github.com>
Co-authored-by: bmribler <39579120+bmribler@users.noreply.github.com>
2020-12-14 08:02:17 +08:00
|
|
|
H5_DLL herr_t H5G__obj_lookup(const H5O_loc_t *grp_oloc, const char *name, hbool_t *found, H5O_link_t *lnk);
|
2018-11-11 01:54:20 +08:00
|
|
|
#ifndef H5_NO_DEPRECATED_SYMBOLS
|
2020-09-30 22:27:10 +08:00
|
|
|
H5_DLL herr_t H5G__get_objinfo(const H5G_loc_t *loc, const char *name, hbool_t follow_link,
|
|
|
|
H5G_stat_t *statbuf /*out*/);
|
2018-11-11 01:54:20 +08:00
|
|
|
#endif /* H5_NO_DEPRECATED_SYMBOLS */
|
2005-11-15 10:55:39 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* These functions operate on group hierarchy names.
|
|
|
|
*/
|
2012-02-10 10:16:52 +08:00
|
|
|
H5_DLL herr_t H5G__name_init(H5G_name_t *name, const char *path);
|
2005-11-15 10:55:39 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* These functions operate on group "locations"
|
|
|
|
*/
|
2020-09-30 22:27:10 +08:00
|
|
|
H5_DLL herr_t H5G__loc_insert(H5G_loc_t *grp_loc, const char *name, H5G_loc_t *obj_loc, H5O_type_t obj_type,
|
|
|
|
const void *crt_info);
|
|
|
|
H5_DLL herr_t H5G__loc_addr(const H5G_loc_t *loc, const char *name, haddr_t *addr /*out*/);
|
2005-11-15 10:55:39 +08:00
|
|
|
|
|
|
|
/* Testing functions */
|
|
|
|
#ifdef H5G_TESTING
|
2012-02-10 10:16:52 +08:00
|
|
|
H5_DLL htri_t H5G__is_empty_test(hid_t gid);
|
|
|
|
H5_DLL htri_t H5G__has_links_test(hid_t gid, unsigned *nmsgs);
|
|
|
|
H5_DLL htri_t H5G__has_stab_test(hid_t gid);
|
|
|
|
H5_DLL htri_t H5G__is_new_dense_test(hid_t gid);
|
|
|
|
H5_DLL herr_t H5G__new_dense_info_test(hid_t gid, hsize_t *name_count, hsize_t *corder_count);
|
|
|
|
H5_DLL herr_t H5G__lheap_size_test(hid_t gid, size_t *lheap_size);
|
2020-09-30 22:27:10 +08:00
|
|
|
H5_DLL herr_t H5G__user_path_test(hid_t obj_id, char *user_path, size_t *user_path_len,
|
|
|
|
unsigned *user_path_hidden);
|
2012-02-10 10:16:52 +08:00
|
|
|
H5_DLL herr_t H5G__verify_cached_stab_test(H5O_loc_t *grp_oloc, H5G_entry_t *ent);
|
|
|
|
H5_DLL herr_t H5G__verify_cached_stabs_test(hid_t gid);
|
2005-11-15 10:55:39 +08:00
|
|
|
#endif /* H5G_TESTING */
|
2005-11-07 11:13:53 +08:00
|
|
|
|
2021-02-23 12:29:56 +08:00
|
|
|
#endif /* H5Gpkg_H */
|