diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-07-01 13:58:14 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-07-01 13:58:14 (GMT) |
commit | 7c8a630054325690b9b24701dcda0d233a59e65d (patch) | |
tree | f4e0a152b09b8c0ab3dffbbf419c887d6b0c23c3 /src/H5FS.c | |
parent | f23ed40caef80f7a41cf7ce67e0615243c3e11f5 (diff) | |
download | hdf5-7c8a630054325690b9b24701dcda0d233a59e65d.zip hdf5-7c8a630054325690b9b24701dcda0d233a59e65d.tar.gz hdf5-7c8a630054325690b9b24701dcda0d233a59e65d.tar.bz2 |
[svn-r12449] Purpose:
Code checkpoint
Description:
Revise fractal heap code to support deletions in up to 2nd level deep
indirect blocks. Needs some revisions to support deeper indirect blocks...
Platforms tested:
FreeBSD 4.11 (sleipnir)
Linux 2.4 (chicago)
h5committest
Diffstat (limited to 'src/H5FS.c')
-rw-r--r-- | src/H5FS.c | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -15,7 +15,7 @@ /* Programmer: Quincey Koziol <koziol@ncsa.uiuc.edu> * Tuesday, May 2, 2006 * - * Purpose: File free space functions. + * Purpose: Free space tracking functions. * * Note: (Used to be in the H5HFflist.c file, prior to the date above) * @@ -2535,3 +2535,24 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* H5FS_close() */ +herr_t +H5FS_debug_test(const H5FS_t *fspace) +{ + FUNC_ENTER_NOAPI_NOINIT(H5FS_debug_test) + + HDfprintf(stderr, "%s: fspace->merge_list = %p\n", FUNC, fspace->merge_list); + if(fspace->merge_list) { + H5SL_node_t *merge_node; + H5FS_section_info_t *sect; + + merge_node = H5SL_last(fspace->merge_list); + HDfprintf(stderr, "%s: last merge node = %p\n", FUNC, merge_node); + if(merge_node) { + sect = H5SL_item(merge_node); + HDfprintf(stderr, "%s: sect->size = %Hu, sect->addr = %a, sect->type = %u\n", FUNC, sect->size, sect->addr, sect->type); + } /* end if */ + } /* end if */ + + FUNC_LEAVE_NOAPI(SUCCEED) +} + |