diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2017-02-18 23:42:25 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2017-02-18 23:42:25 (GMT) |
commit | 4a42b04e592d35d38f1a390a2e56464f7dfc313e (patch) | |
tree | 8d0d094a909a58cfbda52e967a8ea55a6ae30982 /src/H5MFaggr.c | |
parent | b26b6843398f74b838d6ad3a99c022961d430396 (diff) | |
download | hdf5-4a42b04e592d35d38f1a390a2e56464f7dfc313e.zip hdf5-4a42b04e592d35d38f1a390a2e56464f7dfc313e.tar.gz hdf5-4a42b04e592d35d38f1a390a2e56464f7dfc313e.tar.bz2 |
Switch major error code from H5E_FSPACE [back] to H5E_RESOURCE
Diffstat (limited to 'src/H5MFaggr.c')
-rw-r--r-- | src/H5MFaggr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5MFaggr.c b/src/H5MFaggr.c index 7b5a298..9cdebc8 100644 --- a/src/H5MFaggr.c +++ b/src/H5MFaggr.c @@ -116,15 +116,15 @@ HDfprintf(stderr, "%s: alloc_type = %u, size = %Hu\n", FUNC, (unsigned)alloc_typ /* Get the EOA for the file -- need for sanity check below */ if(HADDR_UNDEF == (eoa = H5F_get_eoa(f, alloc_type))) - HGOTO_ERROR(H5E_FSPACE, H5E_CANTGET, HADDR_UNDEF, "Unable to get eoa") + HGOTO_ERROR(H5E_RESOURCE, H5E_CANTGET, HADDR_UNDEF, "Unable to get eoa") /* Check for overlap into temporary allocation space */ if(H5F_addr_gt((eoa + size), f->shared->tmp_addr)) - HGOTO_ERROR(H5E_FSPACE, H5E_BADRANGE, HADDR_UNDEF, "hdr file space alloc will overlap into 'temporary' file space") + HGOTO_ERROR(H5E_RESOURCE, H5E_BADRANGE, HADDR_UNDEF, "hdr file space alloc will overlap into 'temporary' file space") /* Allocate space for the header */ if(HADDR_UNDEF == (ret_value = H5FD_alloc(f->shared->lf, dxpl_id, alloc_type, f, size, &eoa_frag_addr, &eoa_frag_size))) - HGOTO_ERROR(H5E_FSPACE, H5E_CANTALLOC, HADDR_UNDEF, "can't allocate file space for hdr") + HGOTO_ERROR(H5E_RESOURCE, H5E_CANTALLOC, HADDR_UNDEF, "can't allocate file space for hdr") /* Sanity check for overlapping into file's temporary allocation space */ HDassert(H5F_addr_le((ret_value + size), f->shared->tmp_addr)); |