mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-01 16:28:09 +08:00
Minor H5FS tweaks.
This commit is contained in:
parent
216fffd7cc
commit
a2bafdc7a1
@ -1195,14 +1195,14 @@ H5FS_get_sect_count(const H5FS_t *frsp, hsize_t *tot_sect_count)
|
|||||||
*
|
*
|
||||||
* Purpose: Verify that the free space manager is mostly sane
|
* Purpose: Verify that the free space manager is mostly sane
|
||||||
*
|
*
|
||||||
* Return: SUCCEED (Can't fail)
|
* Return: void
|
||||||
*
|
*
|
||||||
* Programmer: Quincey Koziol
|
* Programmer: Quincey Koziol
|
||||||
* Jul 17 2006
|
* Jul 17 2006
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
herr_t
|
void
|
||||||
H5FS__assert(const H5FS_t *fspace)
|
H5FS__assert(const H5FS_t *fspace)
|
||||||
{
|
{
|
||||||
FUNC_ENTER_PACKAGE_NOERR
|
FUNC_ENTER_PACKAGE_NOERR
|
||||||
@ -1228,7 +1228,7 @@ HDfprintf(stderr, "%s: fspace->tot_sect_count = %Hu\n", "H5FS__assert", fspace->
|
|||||||
HDassert(fspace->serial_sect_count > 0 || fspace->ghost_sect_count == 0);
|
HDassert(fspace->serial_sect_count > 0 || fspace->ghost_sect_count == 0);
|
||||||
#endif /* QAK */
|
#endif /* QAK */
|
||||||
|
|
||||||
FUNC_LEAVE_NOAPI(SUCCEED)
|
FUNC_LEAVE_NOAPI_VOID
|
||||||
} /* end H5FS__assert() */
|
} /* end H5FS__assert() */
|
||||||
#endif /* H5FS_DEBUG_ASSERT */
|
#endif /* H5FS_DEBUG_ASSERT */
|
||||||
|
|
||||||
|
@ -235,10 +235,10 @@ H5_DLL herr_t H5FS__hdr_dest(H5FS_t *hdr);
|
|||||||
H5_DLL herr_t H5FS_sinfo_dest(H5FS_sinfo_t *sinfo);
|
H5_DLL herr_t H5FS_sinfo_dest(H5FS_sinfo_t *sinfo);
|
||||||
|
|
||||||
/* Sanity check routines */
|
/* Sanity check routines */
|
||||||
#ifdef H5FS_DEBUG
|
#ifdef H5FS_DEBUG_ASSERT
|
||||||
H5_DLL herr_t H5FS__assert(const H5FS_t *fspace);
|
H5_DLL void H5FS__assert(const H5FS_t *fspace);
|
||||||
H5_DLL herr_t H5FS__sect_assert(const H5FS_t *fspace);
|
H5_DLL void H5FS__sect_assert(const H5FS_t *fspace);
|
||||||
#endif /* H5FS_DEBUG */
|
#endif /* H5FS_DEBUG_ASSERT */
|
||||||
|
|
||||||
/* Testing routines */
|
/* Testing routines */
|
||||||
#ifdef H5FS_TESTING
|
#ifdef H5FS_TESTING
|
||||||
|
@ -2197,14 +2197,14 @@ done:
|
|||||||
*
|
*
|
||||||
* Purpose: Verify that the sections managed are mostly sane
|
* Purpose: Verify that the sections managed are mostly sane
|
||||||
*
|
*
|
||||||
* Return: SUCCEED/FAIL
|
* Return: void
|
||||||
*
|
*
|
||||||
* Programmer: Quincey Koziol
|
* Programmer: Quincey Koziol
|
||||||
* Jul 17 2006
|
* Jul 17 2006
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
herr_t
|
void
|
||||||
H5FS__sect_assert(const H5FS_t *fspace)
|
H5FS__sect_assert(const H5FS_t *fspace)
|
||||||
{
|
{
|
||||||
hsize_t separate_obj; /* The number of separate objects managed */
|
hsize_t separate_obj; /* The number of separate objects managed */
|
||||||
@ -2256,7 +2256,7 @@ HDfprintf(stderr, "%s: fspace->tot_sect_count = %Hu\n", "H5FS__sect_assert", fsp
|
|||||||
size_t size_ghost_count; /* # of ghost sections of this size */
|
size_t size_ghost_count; /* # of ghost sections of this size */
|
||||||
|
|
||||||
/* Get section size node */
|
/* Get section size node */
|
||||||
fspace_node = H5SL_item(curr_size_node);
|
fspace_node = (H5FS_node_t *)H5SL_item(curr_size_node);
|
||||||
|
|
||||||
/* Check sections on list */
|
/* Check sections on list */
|
||||||
curr_sect_node = H5SL_first(fspace_node->sect_list);
|
curr_sect_node = H5SL_first(fspace_node->sect_list);
|
||||||
@ -2267,7 +2267,7 @@ HDfprintf(stderr, "%s: fspace->tot_sect_count = %Hu\n", "H5FS__sect_assert", fsp
|
|||||||
H5FS_section_info_t *sect; /* Section */
|
H5FS_section_info_t *sect; /* Section */
|
||||||
|
|
||||||
/* Get section node & it's class */
|
/* Get section node & it's class */
|
||||||
sect = H5SL_item(curr_sect_node);
|
sect = (H5FS_section_info_t *)H5SL_item(curr_sect_node);
|
||||||
cls = &fspace->sect_cls[sect->type];
|
cls = &fspace->sect_cls[sect->type];
|
||||||
#ifdef QAK
|
#ifdef QAK
|
||||||
HDfprintf(stderr, "%s: sect->size = %Hu, sect->addr = %a, sect->type = %u\n", "H5FS__sect_assert", sect->size, sect->addr, sect->type);
|
HDfprintf(stderr, "%s: sect->size = %Hu, sect->addr = %a, sect->type = %u\n", "H5FS__sect_assert", sect->size, sect->addr, sect->type);
|
||||||
@ -2337,7 +2337,7 @@ HDfprintf(stderr, "%s: sect->size = %Hu, sect->addr = %a, sect->type = %u\n", "H
|
|||||||
if(fspace->sinfo->merge_list)
|
if(fspace->sinfo->merge_list)
|
||||||
HDassert(fspace->tot_sect_count == (separate_obj + H5SL_count(fspace->sinfo->merge_list)));
|
HDassert(fspace->tot_sect_count == (separate_obj + H5SL_count(fspace->sinfo->merge_list)));
|
||||||
|
|
||||||
FUNC_LEAVE_NOAPI(SUCCEED)
|
FUNC_LEAVE_NOAPI_VOID
|
||||||
} /* end H5FS__sect_assert() */
|
} /* end H5FS__sect_assert() */
|
||||||
#endif /* H5FS_DEBUG_ASSERT */
|
#endif /* H5FS_DEBUG_ASSERT */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user