summaryrefslogtreecommitdiffstats
path: root/src/H5B2cache.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-10-16 22:57:56 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-10-16 22:57:56 (GMT)
commit16a95636a32fd3f5f16ec37370060222673085a5 (patch)
tree92a43f36d4b10489b100b541e7c76a2fb875791c /src/H5B2cache.c
parent84bf19bec42e2c53114727df2e239aa3fecb1071 (diff)
downloadhdf5-16a95636a32fd3f5f16ec37370060222673085a5.zip
hdf5-16a95636a32fd3f5f16ec37370060222673085a5.tar.gz
hdf5-16a95636a32fd3f5f16ec37370060222673085a5.tar.bz2
[svn-r12768] Description:
Add 'initval' parameter to "lookup3" checksum routine (and implicitly to the metadata checksum routine), to allow chaining several checksums together easily (which isn't used by these modules, but will be used in my next checkin) Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
Diffstat (limited to 'src/H5B2cache.c')
-rw-r--r--src/H5B2cache.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/H5B2cache.c b/src/H5B2cache.c
index 62ce32e..9019765 100644
--- a/src/H5B2cache.c
+++ b/src/H5B2cache.c
@@ -215,7 +215,7 @@ H5B2_cache_hdr_load(H5F_t *f, hid_t dxpl_id, haddr_t addr, const void *_type, vo
HDassert((size_t)(p - buf) == size);
/* Compute checksum on entire header */
- computed_chksum = H5_checksum_metadata(buf, (size - H5B2_SIZEOF_CHKSUM));
+ computed_chksum = H5_checksum_metadata(buf, (size - H5B2_SIZEOF_CHKSUM), 0);
/* Verify checksum */
if(stored_chksum != computed_chksum)
@@ -312,7 +312,7 @@ H5B2_cache_hdr_flush(H5F_t *f, hid_t dxpl_id, hbool_t destroy, haddr_t addr, H5B
H5F_ENCODE_LENGTH(f, p, bt2->root.all_nrec);
/* Compute metadata checksum */
- metadata_chksum = H5_checksum_metadata(buf, (size - H5B2_SIZEOF_CHKSUM));
+ metadata_chksum = H5_checksum_metadata(buf, (size - H5B2_SIZEOF_CHKSUM), 0);
/* Metadata checksum */
UINT32ENCODE(p, metadata_chksum);
@@ -547,7 +547,7 @@ H5B2_cache_internal_load(H5F_t *f, hid_t dxpl_id, haddr_t addr, const void *_uda
} /* end for */
/* Compute checksum on internal node */
- computed_chksum = H5_checksum_metadata(shared->page, (size_t)(p - shared->page));
+ computed_chksum = H5_checksum_metadata(shared->page, (size_t)(p - shared->page), 0);
/* Metadata checksum */
UINT32DECODE(p, stored_chksum);
@@ -644,7 +644,7 @@ H5B2_cache_internal_flush(H5F_t *f, hid_t dxpl_id, hbool_t destroy, haddr_t addr
} /* end for */
/* Compute metadata checksum */
- metadata_chksum = H5_checksum_metadata(shared->page, (size_t)(p - shared->page));
+ metadata_chksum = H5_checksum_metadata(shared->page, (size_t)(p - shared->page), 0);
/* Metadata checksum */
UINT32ENCODE(p, metadata_chksum);
@@ -876,7 +876,7 @@ H5B2_cache_leaf_load(H5F_t *f, hid_t dxpl_id, haddr_t addr, const void *_nrec, v
} /* end for */
/* Compute checksum on internal node */
- computed_chksum = H5_checksum_metadata(shared->page, (size_t)(p - shared->page));
+ computed_chksum = H5_checksum_metadata(shared->page, (size_t)(p - shared->page), 0);
/* Metadata checksum */
UINT32DECODE(p, stored_chksum);
@@ -959,7 +959,7 @@ H5B2_cache_leaf_flush(H5F_t *f, hid_t dxpl_id, hbool_t destroy, haddr_t addr, H5
} /* end for */
/* Compute metadata checksum */
- metadata_chksum = H5_checksum_metadata(shared->page, (size_t)(p - shared->page));
+ metadata_chksum = H5_checksum_metadata(shared->page, (size_t)(p - shared->page), 0);
/* Metadata checksum */
UINT32ENCODE(p, metadata_chksum);