diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-03-11 04:34:06 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-03-11 04:34:06 (GMT) |
commit | 0813413a781cfc763317c7c5b4edaf13465fa5c0 (patch) | |
tree | 5fe68b18094572a2d049ba54401855eeb906582f /src/H5BTpkg.h | |
parent | 330a3f1fcb16bcc61c525bb81aa2d4db907974c7 (diff) | |
download | hdf5-0813413a781cfc763317c7c5b4edaf13465fa5c0.zip hdf5-0813413a781cfc763317c7c5b4edaf13465fa5c0.tar.gz hdf5-0813413a781cfc763317c7c5b4edaf13465fa5c0.tar.bz2 |
[svn-r10191] Purpose:
New tests
Description:
Add some internal validation routines and make certain that the max & min
block sizes get tracked accurately, at least for a simple series of insertions
Platforms tested:
FreeBSD 4.11 (sleipnir)
Solaris 2.9 (shanti)
Diffstat (limited to 'src/H5BTpkg.h')
-rw-r--r-- | src/H5BTpkg.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/H5BTpkg.h b/src/H5BTpkg.h index 83dfbe0..5ceb904 100644 --- a/src/H5BTpkg.h +++ b/src/H5BTpkg.h @@ -57,6 +57,16 @@ H5F_SIZEOF_SIZE(f) + /* Total number of bytes tracked */ \ H5F_SIZEOF_ADDR(f)) /* Address of v2 B-tree which holds block inf */ +/* Bit flags for block tracker size status */ +#define H5BT_STATUS_MAX_VALID 0x01 /* Maximum block size valid over all blocks tracked */ + /* If this flag is not set, then only part of the blocks have been */ + /* searched to determine the current maximum block size. This can happen */ + /* during block shrinks or removals */ +#define H5BT_STATUS_MIN_VALID 0x02 /* Minimum block size valid over all blocks tracked */ + /* If this flag is not set, then only part of the blocks have been */ + /* searched to determine the current minimum block size. This can happen */ + /* during block expansions or removals */ + /****************************/ /* Package Private Typedefs */ @@ -104,6 +114,12 @@ H5FL_EXTERN(H5BT_t); H5_DLL herr_t H5BT_cache_dest(H5F_t *f, H5BT_t *b); H5_DLL herr_t H5BT_hdr_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, FILE *stream, int indent, int fwidth); +#ifdef H5BT_TESTING +H5_DLL herr_t H5BT_get_max_info(H5F_t *f, hid_t dxpl_id, haddr_t addr, + hsize_t *size, uint32_t *count, hbool_t *valid); +H5_DLL herr_t H5BT_get_min_info(H5F_t *f, hid_t dxpl_id, haddr_t addr, + hsize_t *size, uint32_t *count, hbool_t *valid); +#endif /* H5B2_TESTING */ #endif /* _H5BTpkg_H */ |