diff options
author | Vailin Choi <vchoi@hdfgroup.org> | 2013-10-18 18:10:03 (GMT) |
---|---|---|
committer | Vailin Choi <vchoi@hdfgroup.org> | 2013-10-18 18:10:03 (GMT) |
commit | 1bc858b1b889ae2d0eeca463646592d195db8c94 (patch) | |
tree | c4bacbd730fc23478d16bb36138c63b224403dbd /src/H5Fprivate.h | |
parent | 5d727f0acde67a5e43b31b1fd3d33f8552b59e2a (diff) | |
download | hdf5-1bc858b1b889ae2d0eeca463646592d195db8c94.zip hdf5-1bc858b1b889ae2d0eeca463646592d195db8c94.tar.gz hdf5-1bc858b1b889ae2d0eeca463646592d195db8c94.tar.bz2 |
[svn-r24331] Changes to track metadata read retries for metadata items with checksum.
Implement new public routine H5Fget_metadata_read_retries_info().
h5committested.
Diffstat (limited to 'src/H5Fprivate.h')
-rw-r--r-- | src/H5Fprivate.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/H5Fprivate.h b/src/H5Fprivate.h index 5f81cb7..cac34b7 100644 --- a/src/H5Fprivate.h +++ b/src/H5Fprivate.h @@ -462,7 +462,7 @@ typedef struct H5F_blk_aggr_t H5F_blk_aggr_t; #define H5F_ACS_MULTI_TYPE_NAME "multi_type" /* Data type in multi file driver */ #define H5F_ACS_LATEST_FORMAT_NAME "latest_format" /* 'Use latest format version' flag */ #define H5F_ACS_WANT_POSIX_FD_NAME "want_posix_fd" /* Internal: query the file descriptor from the core VFD, instead of the memory address */ -#define H5F_ACS_READ_ATTEMPTS_NAME "read_attempts" /* # of read attempts */ +#define H5F_ACS_METADATA_READ_ATTEMPTS_NAME "metadata_read_attempts" /* # of metadata read attempts */ #define H5F_ACS_EFC_SIZE_NAME "efc_size" /* Size of external file cache */ #define H5F_ACS_FILE_IMAGE_INFO_NAME "file_image_info" /* struct containing initial file image and callback info */ @@ -507,8 +507,8 @@ typedef struct H5F_blk_aggr_t H5F_blk_aggr_t; #define H5_SIZEOF_CHKSUM 4 -#define H5F_READ_ATTEMPTS 1 /* Default # of read attempts for non-swmr access */ -#define H5F_SWMR_READ_ATTEMPTS 100 /* Default # of read attempts for swmr access */ +#define H5F_METADATA_READ_ATTEMPTS 1 /* Default # of read attempts for non-SWMR access */ +#define H5F_SWMR_METADATA_READ_ATTEMPTS 100 /* Default # of read attempts for SWMR access */ /* v1 B-tree node signature */ #define H5B_MAGIC "TREE" @@ -639,9 +639,11 @@ H5_DLL herr_t H5F_flush_tagged_metadata(H5F_t * f, haddr_t tag, hid_t dxpl_id); H5_DLL herr_t H5F_evict_tagged_metadata(H5F_t * f, haddr_t tag, hid_t dxpl_id); /* Function that read and verify a piece of metadata with checksum */ -H5_DLL herr_t H5F_read_check_metadata(const H5F_t *f, H5FD_mem_t type, haddr_t addr, size_t read_size, size_t chk_size, +H5_DLL herr_t H5F_read_check_metadata(H5F_t *f, H5FD_mem_t type, unsigned actype, haddr_t addr, size_t read_size, size_t chk_size, hid_t dxpl_id, uint8_t *buf/*out*/, uint32_t *chksum/*out*/); H5_DLL herr_t H5F_get_checksums(uint8_t *buf, size_t chk_size, uint32_t *s_chksum, uint32_t *c_chksum); +/* Routine to track the # of retries */ +H5_DLL herr_t H5F_track_metadata_read_retries(H5F_t *f, unsigned actype, unsigned retries); /* Address-related functions */ H5_DLL void H5F_addr_encode(const H5F_t *f, uint8_t **pp, haddr_t addr); |