summaryrefslogtreecommitdiffstats
path: root/src/H5C2private.h
diff options
context:
space:
mode:
authorMike McGreevy <mamcgree@hdfgroup.org>2008-03-13 20:57:47 (GMT)
committerMike McGreevy <mamcgree@hdfgroup.org>2008-03-13 20:57:47 (GMT)
commitcbdca772735710a372dcf57915d3bc5bff58ef07 (patch)
tree932a3008ef2fce2c5dfe7821c6576cfb00c88f2d /src/H5C2private.h
parentd1a21a4553d3f7603eb4086770696931d79b4647 (diff)
downloadhdf5-cbdca772735710a372dcf57915d3bc5bff58ef07.zip
hdf5-cbdca772735710a372dcf57915d3bc5bff58ef07.tar.gz
hdf5-cbdca772735710a372dcf57915d3bc5bff58ef07.tar.bz2
[svn-r14736] Purpose: Updating journal entry logging code, and adding tests.
Description: Journal entry logging code has been upgraded. The code now accurately tracks transactions that have made it to disk, and converts data from binary to hex for entry into the journal file. Various other minor code modifications have been made based on suggestions by John Mainzer. More tests have been added to verify the functionality of the logging code. Specifically, tests have been written to verify functionality of the ring buffer, to check validity of journal messages produced, and to verify that transaction tracking is functioning appropriately. Tested: kagiso, smirom, linew, duty
Diffstat (limited to 'src/H5C2private.h')
-rw-r--r--src/H5C2private.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/H5C2private.h b/src/H5C2private.h
index a829ed5..4a7c4b9 100644
--- a/src/H5C2private.h
+++ b/src/H5C2private.h
@@ -1421,7 +1421,9 @@ H5_DLL herr_t H5C2_jb__flush(H5C2_jbrb_t * struct_ptr);
H5_DLL herr_t H5C2_jb__write_to_buffer(H5C2_jbrb_t * struct_ptr,
size_t size,
- const char * data);
+ const char * data,
+ hbool_t is_end_trans,
+ unsigned long trans_num);
H5_DLL herr_t H5C2_jb__init(H5C2_jbrb_t * struct_ptr,
char * HDF5_file_name,
@@ -1438,7 +1440,7 @@ H5_DLL herr_t H5C2_jb__journal_entry(H5C2_jbrb_t * struct_ptr,
unsigned long trans_num,
haddr_t base_addr,
size_t length,
- char * body);
+ const char * body);
H5_DLL herr_t H5C2_jb__end_transaction(H5C2_jbrb_t * struct_ptr,
unsigned long trans_num);
@@ -1458,6 +1460,11 @@ H5_DLL herr_t H5C2_jb__reconfigure(H5C2_jbrb_t * struct_ptr,
int new_num_bufs,
hbool_t new_use_aio);
+H5_DLL herr_t H5C2_jb__bin2hex(uint8_t * buf,
+ uint8_t * hexdata,
+ size_t * hexlength,
+ size_t buf_offset,
+ size_t buf_size);
#endif /* !_H5C2private_H */