summaryrefslogtreecommitdiffstats
path: root/src/H5Aint.c
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r29903] merge from trunk.Mohamad Chaarawi2016-05-091-35/+25
|\
| * [svn-r29612] Description:Quincey Koziol2016-04-031-7/+6
| | | | | | | | | | | | | | | | | | Bring updated layout and EFL property comparisons and new "latest format" flags from revise_chunks branch. Tested on: MacOSX/64 10.11.4 (amazon) w/serial, parallel & production (h5committest forthcoming)
| * [svn-r29057] added dxpl type checking when debug mode is enabled ↵Mohamad Chaarawi2016-02-071-3/+3
| | | | | | | | | | | | (H5_DEBUG_BUILD) tested on bb-8 with Serial and Parallel, debug and production builds.
| * [svn-r28950] - remove META_FLUSH_COLLECTIVELY property for delayed sanity ↵Mohamad Chaarawi2016-01-211-2/+2
| | | | | | | | | | | | | | | | | | | | checks from metadata dxpls - remove H5AC_ind_dxpl_id and use only H5AC_dxpl_id everywhere instead. - remove flush_me_collectively flag from cache entries - add a collective sanity check (MPI_Barrier) for every HDF5 API routine that could possibly touch the file. This is trigerred when the environment variable H5_COLL_API_SANITY_CHECK is set to a non 0 digit. tested on BB-8 with serial and parallel.
* | [svn-r28715] - merge from trunkMohamad Chaarawi2015-12-211-1/+1
|\ \ | |/ | | | | - fix farray, earray, and btree test to use correct function to retrieve internal file struct.
| * [svn-r28702] Description:Quincey Koziol2015-12-171-1/+1
| | | | | | | | | | | | | | Fix typo in comment. Tested on: (Unneeded)
* | [svn-r27990] fix some warnings.Mohamad Chaarawi2015-10-071-5/+5
| |
* | [svn-r27972] merge from trunk.Mohamad Chaarawi2015-10-061-23/+22
|\ \ | |/
| * [svn-r27938] Fix private/public H5A_get_type and H5A_get_spaceJerome Soumagne2015-10-021-34/+24
| |
* | [svn-r27777] merge from trunk.Mohamad Chaarawi2015-09-141-31/+39
|\ \ | |/
| * [svn-r27768] Description:Quincey Koziol2015-09-141-31/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Complete revamp of package initialization/shutdown mechanism in the library. Each package now has a single init/term routine. This new way should avoid packages being re-initialized during library shutdown and is also be _much_ more proactive about giving feedback for resource leaks internal to the library. Introduces a new "module" header file for packages in the library (e.g src/H5Fmodule.h) which sets up some necessary package configuration macros for the FUNC_ENTER/LEAVE macros. (The VFL drivers have their own slightly modified version of this header, src/H5FDdrvr_module.h) Also cleaned up a bunch of resources leaks all across the library and tests, along with addressing many warnings, as I encountered them. Tested on: MacOSX/64 10.10.5 (amazon) w/serial & parallel Linux/64 3.10.x (kituo) w/serial & parallel Linux/64 2.6.x (ostrich) w/serial
* | [svn-r27141] merge from trunk.Mohamad Chaarawi2015-06-031-2/+2
|\ \ | |/
| * [svn-r27133] - Add a new attribute function characterstic for format:Mohamad Chaarawi2015-06-011-2/+2
| | | | | | | | | | | | | | | | * H5_ATTR_FORMAT(X,Y,Z) __attribute__((format(X, Y, Z))) - Rename UNUSED attribute characterstic to H5_ATTR_UNUSED. - Rename NORETURN attribute characterstic to H5_ATTR_NORETURN tested with h5committest.
* | [svn-r27090] merge from trunk.Mohamad Chaarawi2015-05-151-157/+157
|\ \ | |/
| * [svn-r27089] move private functions from H5A.c to H5Aint.cMohamad Chaarawi2015-05-151-0/+263
| |
| * [svn-r27068] Description:Quincey Koziol2015-05-151-285/+22
| | | | | | | | | | | | | | | | | | Clean up the H5A interface code, to better align with v3 metadata cache changes. Tested on: MacOSX/64 10.10.3 (amazon) w/serial & parallel Linux/32 2.6.x (jam) w/serial & parallel
* | [svn-r27050] merge from trunk.Mohamad Chaarawi2015-05-111-11/+15
|\ \ | |/
| * [svn-r27045] Renamed H5_ASSIGN_OVERFLOW() to H5_CHECKED_ASSIGN() and re-orderedDana Robinson2015-05-101-5/+9
| | | | | | | | | | | | the arguments to be in a more logical order. Tested on: h5committest
| * [svn-r26777] - Fix usage of the internal AC global dxplsMohamad Chaarawi2015-04-101-5/+5
| | | | | | | | | | | | - allocate sieve buffer with calloc instead of malloc tested with h5committest
* | [svn-r25575] cleanup H5I usage in VOL by removing the use of the aux pointer andMohamad Chaarawi2014-09-051-6/+5
| | | | | | | | | | make a higher level wrapper object around all VOL objects that includes the VOL information.
* | [svn-r25555] - rework the public H5VL wrappers to not use H5VL_t* and use a ↵Mohamad Chaarawi2014-08-261-14/+0
| | | | | | | | | | | | | | plugin hid_t instead - rework the private VL layer to use the class structure directly - some bug fixes
* | [svn-r25537] VOL framework changes.Mohamad Chaarawi2014-08-191-0/+205
| |
* | [svn-r25521] major rework of the internal setup of VOL plugins to make it moreMohamad Chaarawi2014-08-081-1/+0
| | | | | | | | | | | | | | symmetrical to VFDs and allow new functionality to be implemented later. + some Bug fixes
* | [svn-r25471] merge from trunk and resolve conflicts.Mohamad Chaarawi2014-07-231-12/+7
|\ \ | |/
| * [svn-r25468] some code refactoring to align trunk with VOL branch.Mohamad Chaarawi2014-07-221-0/+1152
| | | | | | | | tested with h5committest.
* | [svn-r25463] more aligning with trunk.Mohamad Chaarawi2014-07-221-50/+3
| |
* | [svn-r25254] merge from trunk.Mohamad Chaarawi2014-06-111-1/+1
|\ \ | |/
* | [svn-r22623] merge from tunkMohamad Chaarawi2012-08-021-1/+1
|\ \ | |/
| * [svn-r22601] Purpose: Fix HDFFV-5853Neil Fortner2012-07-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Description: When jumping out from between H5_BEGIN_TAG and H5_END_TAG macros using HGOTO_ERROR or HGOTO_DONE, the previous metadata tag is not reset on the dxpl. This could cause problems when, for example, calling H5Ocopy within an H5Literate callback. Added new HGOTO_ERROR_TAG and HGOTO_DONE_TAG macros which must be used in place of the above between H5_BEGIN_TAG and H5_END_TAG. Tested: jam, koala, ostrich (h5committest), durandal
* | [svn-r22584] merge from trunk and resolve type ID registrationMohamad Chaarawi2012-07-161-38/+38
|\ \ | |/
| * [svn-r22582] Description:Quincey Koziol2012-07-161-38/+38
| | | | | | | | | | | | | | | | | | Refactor ID class registration to be more like how other "class"s in the library are registered, and clean up compiler warnings. Tested on: Mac OSX/64 10.7.4 (amazon) w/debug (Too minor to require h5comittest)
* | [svn-r22565] change OH id registration to original way, and re-register the ↵Mohamad Chaarawi2012-07-121-12/+2
| | | | | | | | | | | | | | | | ID with the VOL info on the upper level (API and iteration/visit routines) - this fixes the bug exposed in H5Oopen with external log plugin update the private VL registration routine to take an app_ref update the datatype ID creation for the VOL to take an app_ref
* | [svn-r22532] fix more named datatype issues.Mohamad Chaarawi2012-07-091-1/+1
| | | | | | | | move the dataset ID registration to H5Dint where the term_interface func is located
* | [svn-r22523] - rework how IDs for VOL objects are createdMohamad Chaarawi2012-07-061-9/+3
| | | | | | | | | | - change how the vlose routine is registered with VOL IDs - some bug fixes
* | [svn-r22519] - many bug fixesMohamad Chaarawi2012-07-051-27/+32
| | | | | | | | - still some unresolved issues with named datatypes
* | [svn-r22513] fix some committed datatype issuesMohamad Chaarawi2012-07-031-3/+28
| | | | | | | | update get_type routines to construct a VOL datatype if the type is named
* | [svn-r22501] change the interface callbacks for the VOL to use objects ↵Mohamad Chaarawi2012-06-281-61/+56
| | | | | | | | | | | | pointers and public VL structure instead of IDs. tests will fail now because of named datatypes.
* | [svn-r22468] split H5F.c into 2 files, H5F.c for public routines and ↵Mohamad Chaarawi2012-06-151-0/+1155
| | | | | | | | | | | | H5Fint.c for private ones move H5A private routines to H5Aint.c
* | [svn-r22452] - remove nrefs paramMohamad Chaarawi2012-06-111-0/+50
|/ | | | | | | | - create a struct to hold parameters for object locations instead of calling into VOL to lookup and free object: * update the implementation for H5Oopen(_by_name/idx/ref) * H5Rderefence * H5Aopen(_by_name), H5Arename(_by_name) * other routines coming later
* [svn-r22173] Purpose: Fix HDFFV-7762Neil Fortner2012-03-281-0/+10
| | | | | | | | | | | | | | | | Description: When copying an object with attribute creation order tracked, the attribute creation order was not copied correctly to the destination file, causing an error if the creation order was also indexed (due to attempting to insert duplicate keys) or incorrect creation orders otherwise. Fixed to copy the creation order correctly. Also fixed the attribute character set not being copied, and fixed an issue where an attribute opened with H5Aopen (or similar, but not by_idx), from an object using the latest format but without creation order being tracked, would always report the creation order as 0 (and marked as valid). Tested: jam, koala, ostrich (h5committest), durandal
* [svn-r21919] Description:Quincey Koziol2012-02-091-17/+17
| | | | | | | | Refactor function name macros and simplify the FUNC_ENTER macros, to clear away the cruft and prepare for further cleanups. Tested on: Mac OSX/64 10.7.3 (amazon) w/debug, production & parallel
* [svn-r21629] Purpose: Update fix committed in r21556Neil Fortner2011-10-201-6/+15
| | | | | | | | Description: An old patch was mistakenly committed in r21556. Replaced this fix with the latest. Tested: jam, koala, heiwa (h5committest)
* [svn-r21617] Description:Quincey Koziol2011-10-201-0/+4
| | | | | | | | | | Recalculate the size of destination attribute message when the source and destination versions are different during an object copy operation. (Jira: HDFF-7718) Tested on: Mac OS X/32 10.7.2 (amazon) w/debug (h5committest upcoming)
* [svn-r21556] Purpose: Fix bug in H5OcopyNeil Fortner2011-10-131-132/+54
| | | | | | | | | | | | | Description: H5Ocopy could get confused when copying a named datatype containing an attribute which used that named datatype as its datatype. This happened because H5Ocopy would recurse into the attribute's datatype before the object the attribute was in was fully copied (i.e. before the "post-copy" pass). Modified H5Ocopy to avoid recursing before the post-copy step in this case. Required many changes, including to how non-committed shared messages are copied. Tested: jam, koala, heiwa (h5committest); durandal
* [svn-r21476] The first part fix for bug HDFFV-7640: does not need to do ↵Vailin Choi2011-10-051-1/+1
| | | | | | H5O_move_msgs_forward() when writing attributes. h5committested. Tests are checked into the performance suite.
* [svn-r20536] Description:Quincey Koziol2011-04-171-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up various warnings & code formatting issues. Bring changes from Coverity branch to trunk: r20085: Purpose: Fix coverity issue 793 Description: Modified H5S_hyper_project_simple_higher() to free the entire span list in new_space on failure. r20091: This is a fix for coverity bug #1683. Changed the two printfs to use %lu (unsigned long) for printing "dset_size". r20162: Purpose: Fix coverity issue 785 Description: Modified H5T_enum_nameof() to free "name" on failure if it was allocated. Also clarified some code in H5S_hyper_rebuild_helper(). r20189: Addressed coverity defect 783. H5SL_new_node() in H5SL.c was failing to free space allocated in its first alloc if the second alloc failed. Added a call to H5FL_FREE to address this issue. This is purely to keep coverity happy -- if this code is ever triggered, we have much larger problems. Note that this fix will trigger an unused return value complaint from coverity next week. r20190: Fixed Coverity issues 1561 1565 and 1678 (UNUSED_VALUES) by moving checks of return values to after the function call. r20191: Fixed coverity issues 643 644 and 1678 (CHECKED_RETURN). r20232: Addressed coverity issues 923-925. Replaced calls to sprintf with calls to HDsnprintf. r20233: Fix coverity issue 662. Don't try to sort 0 attributes in H5Aint.c. r20234: Fix coverity issue 664. Check for NULL before dereferencing in H5Gdeprec.c. r20271: Purpose: Fix coverity issue 784 Description: Modified H5_debug_mask() to keep a list of files opened for use as a debugging output stream, and modified H5_term_library to close these files on exit. r20272: addressed coverity issues 838 & 955. Issue was use of strcpy() -- existing code was safe, but modified to use strncpy() to keep coverity happy. r20273: Addresed coverity issues 1388 and 1389. Initialized sel_iter->type to NULL in H5S_select_iter_init. r20275: Purpose: Fix valgrind issue in mf.c Description: Fixed bug (incomplete if statement) in test_mf_fs_alloc_free() so the retrieved node gets freed. Tested on: FreeBSD/32 6.3 (duty) in debug mode FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, w/threadsafe, in production mode Linux/PPC 2.6 (heiwa) w/C++ & FORTRAN, w/threadsafe, in debug mode
* [svn-r20487] Bug 1386 - allow dimension size to be zero even though it isn't ↵Raymond Lu2011-04-121-2/+3
| | | | | | | | | | | | unlimited. This is a follow-up checkin for r20440 and r20469: 1. The dataspace code has another bug - when the maximal dimension isn't passed in for H5Sset_extent_simple, it is supposed to be same as the dimension. The current library sets NULL to it. I corrected it and added a test case to it. 2. I corrected the tests of Fortran and C++ for this problem. Tested on heiwa, jam, and amani.
* [svn-r19461] Purpose: Fix bug 1864Neil Fortner2010-09-211-1/+2
| | | | | | | | | | | Description: Library versions 1.6.3 and earlier contain a bug which causes them to be unable to perform certain operations on a group if that group's symbol table information is not cached in the parent group's symbol table. Versions 1.8.0 to 1.8.5 did not cache this information. Modified library to cache this information. Tested: jam, amani, heiwa (h5committest)
* [svn-r19398] Descriptino:Quincey Koziol2010-09-161-6/+5
| | | | | | | | | | | | | | | | | | | | | | | Clean up the internal usage H5I_dec_ref() to eliminate the sequence of flags that has been creeping in. Tested on: FreeBSD/32 6.3 (duty) in debug mode FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, w/threadsafe, in production mode Linux/PPC 2.6 (heiwa) w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode Mac OS X/32 10.6.4 (amazon) in debug mode Mac OS X/32 10.6.4 (amazon) w/C++ & FORTRAN, w/threadsafe, in production mode Mac OS X/32 10.6.4 (amazon) w/parallel, in debug mode
* [svn-r19363] When mandatory filter failed to write data chunks, the datasetRaymond Lu2010-09-091-2/+2
| | | | | | | couldn't close (bug 1260). The fix releases all resources and closes the dataset but returns a failure. Tested with h5committest - jam, heiwa, amani.