diff options
author | Vailin Choi <vchoi@hdfgroup.org> | 2007-07-13 21:12:25 (GMT) |
---|---|---|
committer | Vailin Choi <vchoi@hdfgroup.org> | 2007-07-13 21:12:25 (GMT) |
commit | d44b27ddcc66a8ed55f5069eabbf4c287ce1d99a (patch) | |
tree | ab22bfaa95add178894e6c649dc4b8aea0d196f4 /src/H5Fsuper.c | |
parent | 31a2af29ca7aa91fcd47eb018a02ff2e425c5b55 (diff) | |
download | hdf5-d44b27ddcc66a8ed55f5069eabbf4c287ce1d99a.zip hdf5-d44b27ddcc66a8ed55f5069eabbf4c287ce1d99a.tar.gz hdf5-d44b27ddcc66a8ed55f5069eabbf4c287ce1d99a.tar.bz2 |
[svn-r13978] purpose:
New feature.
Description:
Added routines to report on the amount of storage for:
1) 1.6 btree and heap storage info for groups
2) 1.8 btree, fractal heap storage info for groups, attributes and SOHM table
3) btree storage for chunked datasets
4) 1.8 superblock extension size.
Platform tested:
h5committested.
Diffstat (limited to 'src/H5Fsuper.c')
-rw-r--r-- | src/H5Fsuper.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/H5Fsuper.c b/src/H5Fsuper.c index bf00584..4a516af 100644 --- a/src/H5Fsuper.c +++ b/src/H5Fsuper.c @@ -965,3 +965,30 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5F_super_write() */ +/*------------------------------------------------------------------------- + * Function: H5F_super_ext_info + * Get storage size of the superblock extension + * + * Return: Success: non-negative on success + * Failure: Negative + * + * Programmer: Vailin Choi + * July 11, 2007 + *------------------------------------------------------------------------- + */ +herr_t +H5F_super_ext_info(H5F_t *f, H5F_info_t *finfo, hid_t dxpl_id) +{ + herr_t ret_value=SUCCEED; + + FUNC_ENTER_NOAPI(H5F_super_ext_info, FAIL) + + HDassert(f); + HDassert(finfo); + + if (H5O_super_ext_size(f, &(finfo->super_ext_size), dxpl_id) < 0) + HGOTO_ERROR(H5E_FILE, H5E_CANTGET, FAIL, "Unable to retrieve superblock extension size") + +done: + FUNC_LEAVE_NOAPI(ret_value) +} /* H5F_super_ext_info() */ |