summaryrefslogtreecommitdiffstats
path: root/src/H5EAhdr.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2008-11-11 23:30:37 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2008-11-11 23:30:37 (GMT)
commit164a8426ea4d10ba2bca71d0a91dacec72cd79e9 (patch)
tree707ee57516158c4d821bb1f78e365c95069371a3 /src/H5EAhdr.c
parent05e559c9ec89fc50e7b6b03b5109c22adeb2bfc9 (diff)
downloadhdf5-164a8426ea4d10ba2bca71d0a91dacec72cd79e9.zip
hdf5-164a8426ea4d10ba2bca71d0a91dacec72cd79e9.tar.gz
hdf5-164a8426ea4d10ba2bca71d0a91dacec72cd79e9.tar.bz2
[svn-r16061] Description:
Store extra information about each block in the metadata for the block, in the hope that a corrupted file will be easier to recover. (Similar to the information stored for fractal heaps) Tested on: Mac OS X/32 10.5.5 (amazon) in debug mode Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe, in production mode FreeBSD/32 6.3 (duty) in debug mode FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, in production mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Diffstat (limited to 'src/H5EAhdr.c')
-rw-r--r--src/H5EAhdr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5EAhdr.c b/src/H5EAhdr.c
index 9fb3c73..3e98263 100644
--- a/src/H5EAhdr.c
+++ b/src/H5EAhdr.c
@@ -197,6 +197,7 @@ H5EA__hdr_init(H5EA_hdr_t *hdr))
/* Compute general information */
hdr->nsblks = 1 + (hdr->cparam.max_nelmts_bits - H5V_log2_of2(hdr->cparam.data_blk_min_elmts));
+ hdr->arr_off_size = H5EA_SIZEOF_OFFSET_BITS(hdr->cparam.max_nelmts_bits);
#ifdef QAK
HDfprintf(stderr, "%s: hdr->nsblks = %Zu\n", FUNC, hdr->nsblks);
#endif /* QAK */