summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-07-07 16:40:07 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-07-07 16:40:07 (GMT)
commit58e0f63a3c29a36cec5b0df3fe526c0303572444 (patch)
tree0b0063e0927878ccf52e285533751bf62f68c989 /src/H5F.c
parent7d4bb6efd27d5ec2321cef54f3e17f4852f585ec (diff)
downloadhdf5-58e0f63a3c29a36cec5b0df3fe526c0303572444.zip
hdf5-58e0f63a3c29a36cec5b0df3fe526c0303572444.tar.gz
hdf5-58e0f63a3c29a36cec5b0df3fe526c0303572444.tar.bz2
[svn-r7176] Purpose:
Bug fix Description: Boot block checksum was being used instead of file driver info checksum in one calculation. Also, the offset of the file driver info was hard-coded to the end of the superblock, instead of using the file driver offset variable. Solution: Changed to use file driver checksum and file driver offset variable. Platforms tested: FreeBSD 4.8 (sleipnir) too small for h5committest
Diffstat (limited to 'src/H5F.c')
-rw-r--r--src/H5F.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5F.c b/src/H5F.c
index 8a473b7..23e30d3 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -2805,10 +2805,10 @@ H5F_flush(H5F_t *f, hid_t dxpl_id, H5F_scope_t scope, unsigned flags)
p[i%sizeof(f->shared->drvr_chksum)] ^= dbuf[i];
/* Compare with current checksums */
- if(chksum!=f->shared->boot_chksum) {
+ if(chksum!=f->shared->drvr_chksum) {
/* Write driver information block */
if (H5FD_write(f->shared->lf, H5FD_MEM_SUPER, dxpl_id,
- f->shared->base_addr + superblock_size,
+ f->shared->base_addr + f->shared->driver_addr,
driver_size, dbuf) < 0)
HGOTO_ERROR(H5E_IO, H5E_WRITEERROR, FAIL,
"unable to write driver information block");