diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2009-06-04 23:36:31 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2009-06-04 23:36:31 (GMT) |
commit | 607ccd8e85280b3cfe8f63bd91b333215739ecc2 (patch) | |
tree | de78b8a478c46c11cc2beb5796c1c55d050820fb /src/H5Fquery.c | |
parent | cef36b8e7bc68b040ece7d4f43330c2979d4216a (diff) | |
download | hdf5-607ccd8e85280b3cfe8f63bd91b333215739ecc2.zip hdf5-607ccd8e85280b3cfe8f63bd91b333215739ecc2.tar.gz hdf5-607ccd8e85280b3cfe8f63bd91b333215739ecc2.tar.bz2 |
[svn-r17010] Description:
Bring file addres proxy additions from r16985 on the revise_chunks branch
back into the trunk, for use in allowing fractal heap direct blocks to defer
their allocation in the file.
Tested on:
Mac OS X/32 10.5.7 (amazon) debug & production
too minor to require h5committest
Diffstat (limited to 'src/H5Fquery.c')
-rw-r--r-- | src/H5Fquery.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/H5Fquery.c b/src/H5Fquery.c index 275061d..d070b94 100644 --- a/src/H5Fquery.c +++ b/src/H5Fquery.c @@ -687,3 +687,32 @@ done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5F_get_fileno() */ + +/*------------------------------------------------------------------------- + * Function: H5F_get_next_proxy_addr + * + * Purpose: Quick and dirty routine to retrieve the next metadata proxy + * address for a file. + * (Mainly added to stop non-file routines from poking about in the + * H5F_t data structure) + * + * Return: Success: Address to use for metadata cache proxy + * Failure: abort (should not happen) + * + * Programmer: Quincey Koziol <koziol@hdfgroup.org> + * May 19, 2009 + * + *------------------------------------------------------------------------- + */ +haddr_t +H5F_get_next_proxy_addr(const H5F_t *f) +{ + /* Use FUNC_ENTER_NOAPI_NOINIT_NOFUNC here to avoid performance issues */ + FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5F_get_next_proxy_addr) + + HDassert(f); + HDassert(f->shared); + + FUNC_LEAVE_NOAPI(f->shared->next_proxy_addr--) +} /* end H5F_get_next_proxy_addr() */ + |