summaryrefslogtreecommitdiffstats
path: root/src/H5HFiblock.c
diff options
context:
space:
mode:
authorVailin Choi <vchoi@hdfgroup.org>2008-03-04 20:04:18 (GMT)
committerVailin Choi <vchoi@hdfgroup.org>2008-03-04 20:04:18 (GMT)
commit87be7927dd360613f5d884859d03bcb65095a5ce (patch)
tree1d5516a82c73f1232d1f3fb62a43be3f492cba42 /src/H5HFiblock.c
parentc635149be570fad877b9f79ae651153ef22a22dd (diff)
downloadhdf5-87be7927dd360613f5d884859d03bcb65095a5ce.zip
hdf5-87be7927dd360613f5d884859d03bcb65095a5ce.tar.gz
hdf5-87be7927dd360613f5d884859d03bcb65095a5ce.tar.bz2
[svn-r14703] 1. H5HFiblock.c: fixed problem for uninitialized "u" for bug #1072 in H5HF_man_iblock_size().
2. H5HFstat.c: Since H5HF_space_size() zeroed out fs_size, add "meta_size" to store free-space size before adding to "heap_size". 3. h5stat_gentest.c: increase # of groups to get "h5stat_newgrat.h5" that contains indirect block entries in fractal heap. This is for testing the recursive part of the code in H5HF_man_iblock_size(). 4. h5stat_newgrat.h5: the new .h5 file generated by h5stat_gentest.c. 5. h5stat_newgrat.ddl: expected output from new "h5stat_newgrat.h5". Tested on kagiso, smirom, linew.
Diffstat (limited to 'src/H5HFiblock.c')
-rw-r--r--src/H5HFiblock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5HFiblock.c b/src/H5HFiblock.c
index 70133aa..539761f 100644
--- a/src/H5HFiblock.c
+++ b/src/H5HFiblock.c
@@ -1624,7 +1624,8 @@ H5HF_man_iblock_size(H5F_t *f, hid_t dxpl_id, H5HF_hdr_t *hdr, haddr_t iblock_ad
entry = hdr->man_dtable.max_direct_rows * hdr->man_dtable.cparam.width;
first_row_bits = H5V_log2_of2((uint32_t)hdr->man_dtable.cparam.start_block_size) +
H5V_log2_of2(hdr->man_dtable.cparam.width);
- num_indirect_rows = (H5V_log2_gen(hdr->man_dtable.row_block_size[u]) - first_row_bits) + 1;
+ num_indirect_rows =
+ (H5V_log2_gen(hdr->man_dtable.row_block_size[hdr->man_dtable.max_direct_rows]) - first_row_bits) + 1;
for(u = hdr->man_dtable.max_direct_rows; u < iblock->nrows; u++, num_indirect_rows++) {
size_t v; /* Local index variable */