summaryrefslogtreecommitdiffstats
path: root/src/H5EAdblock.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/H5EAdblock.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/H5EAdblock.c')
-rw-r--r--src/H5EAdblock.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/H5EAdblock.c b/src/H5EAdblock.c
index 2d0d241..12897bf 100644
--- a/src/H5EAdblock.c
+++ b/src/H5EAdblock.c
@@ -152,7 +152,7 @@ END_FUNC(PKG) /* end H5EA__dblock_alloc() */
*/
BEGIN_FUNC(PKG, ERR,
haddr_t, HADDR_UNDEF, HADDR_UNDEF,
-H5EA__dblock_create(H5EA_hdr_t *hdr, hid_t dxpl_id, size_t nelmts))
+H5EA__dblock_create(H5EA_hdr_t *hdr, hid_t dxpl_id, hsize_t dblk_off, size_t nelmts))
/* Local variables */
H5EA_dblock_t *dblock = NULL; /* Extensible array data block */
@@ -175,6 +175,12 @@ HDfprintf(stderr, "%s: Called\n", FUNC);
HDfprintf(stderr, "%s: dblock->size = %Zu\n", FUNC, dblock->size);
#endif /* QAK */
+ /* Set offset of block in array's address space */
+ dblock->block_off = dblk_off;
+#ifdef QAK
+HDfprintf(stderr, "%s: dblock->block_off = %Hu\n", FUNC, dblock->block_off);
+#endif /* QAK */
+
/* Allocate space for the data block on disk */
if(HADDR_UNDEF == (dblock->addr = H5MF_alloc(hdr->f, H5FD_MEM_EARRAY_DBLOCK, dxpl_id, (hsize_t)dblock->size)))
H5E_THROW(H5E_CANTALLOC, "file allocation failed for extensible array data block")