summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-02-27 19:50:08 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-02-27 19:50:08 (GMT)
commit3013bf8bfa389b9d21cafa99980e8b88557e33fb (patch)
treea1f33b403cf178aa28deb2f3089f90c697de797f /src
parent6b12e9769f8e246d9abd8ed62a6d4fd8526b9fa5 (diff)
downloadhdf5-3013bf8bfa389b9d21cafa99980e8b88557e33fb.zip
hdf5-3013bf8bfa389b9d21cafa99980e8b88557e33fb.tar.gz
hdf5-3013bf8bfa389b9d21cafa99980e8b88557e33fb.tar.bz2
[svn-r13420] Description:
Update the file offsets for files created with "latest version" flag of h5mkgrp to reflect changes to superblock size. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
Diffstat (limited to 'src')
-rw-r--r--src/H5Fsuper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5Fsuper.c b/src/H5Fsuper.c
index e24a8b2..10a949a 100644
--- a/src/H5Fsuper.c
+++ b/src/H5Fsuper.c
@@ -712,9 +712,9 @@ H5F_write_superblock(H5F_t *f, hid_t dxpl_id)
*p++ = 0; /* reserved*/
*p++ = (uint8_t)share_head_vers;
- assert (H5F_SIZEOF_ADDR(f) <= 255);
+ HDassert(H5F_SIZEOF_ADDR(f) <= 255);
*p++ = (uint8_t)H5F_SIZEOF_ADDR(f);
- assert (H5F_SIZEOF_SIZE(f) <= 255);
+ HDassert(H5F_SIZEOF_SIZE(f) <= 255);
*p++ = (uint8_t)H5F_SIZEOF_SIZE(f);
*p++ = 0; /* reserved */
@@ -741,7 +741,7 @@ H5F_write_superblock(H5F_t *f, hid_t dxpl_id)
if(H5G_obj_ent_encode(f, &p, H5G_oloc(f->shared->root_grp)) < 0)
HGOTO_ERROR(H5E_FILE, H5E_CANTINIT, FAIL, "unable to encode root group information")
- /* Compute superblock checksum */
+ /* Compute [possibly partial] superblock checksum */
if(super_vers >= HDF5_SUPERBLOCK_VERSION_2)
chksum = H5_checksum_metadata(buf, (H5F_SUPERBLOCK_SIZE(super_vers, f) - H5F_SIZEOF_CHKSUM), 0);