summaryrefslogtreecommitdiffstats
path: root/src/H5SMpkg.h
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2006-12-01 17:00:12 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2006-12-01 17:00:12 (GMT)
commitf002b93579ac8cf8bdcb7b7e0b101fa34ad3823e (patch)
tree48e6d45eb5766c1daf636766e39aaa45314f92c2 /src/H5SMpkg.h
parentc9b6db77788f8cefc62610fec2c29b9bb185eeee (diff)
downloadhdf5-f002b93579ac8cf8bdcb7b7e0b101fa34ad3823e.zip
hdf5-f002b93579ac8cf8bdcb7b7e0b101fa34ad3823e.tar.gz
hdf5-f002b93579ac8cf8bdcb7b7e0b101fa34ad3823e.tar.bz2
[svn-r13006] Added checksumming to shared message metadata.
Tested on kagiso, currently testing elsewhere.
Diffstat (limited to 'src/H5SMpkg.h')
-rwxr-xr-xsrc/H5SMpkg.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5SMpkg.h b/src/H5SMpkg.h
index 51c6c1f..c62e748 100755
--- a/src/H5SMpkg.h
+++ b/src/H5SMpkg.h
@@ -35,6 +35,7 @@
#define H5SM_LIST_SIZEOF_MAGIC 4
#define H5SM_TABLE_MAGIC "SMTB"
#define H5SM_TABLE_SIZEOF_MAGIC 4
+#define H5SM_SIZEOF_CHECKSUM 4
#define H5SM_MASTER_TABLE_VERSION 0 /* Version of the Shared Object Header Message Master Table*/
@@ -44,7 +45,7 @@
#define H5SM_TABLE_SIZE(f) ( H5SM_TABLE_SIZEOF_MAGIC \
+ 1 /* Table version */ \
- + 0/* JAMES checksum */) /* Checksum */
+ + H5SM_SIZEOF_CHECKSUM) /* Checksum */
#define H5SM_INDEX_HEADER_SIZE(f) (1 /* Whether index is a list or B-tree */ \
+ 2 /* Type of messages stored in the index */ \
@@ -56,7 +57,8 @@
/* JAMES: add checksum? */
#define H5SM_LIST_SIZE(f, num_mesg) H5SM_LIST_SIZEOF_MAGIC \
+ 1 /* List version */ \
- + (H5SM_SOHM_ENTRY_SIZE(f) * num_mesg)
+ + (H5SM_SOHM_ENTRY_SIZE(f) * num_mesg) \
+ + H5SM_SIZEOF_CHECKSUM /* Checksum */
#define H5SM_MAX_INDEXES 8
#define H5SM_MAX_LIST_ELEMS 1000