summaryrefslogtreecommitdiffstats
path: root/test/links.c
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r13248] Description:Quincey Koziol2007-02-061-2/+2
| | | | | | | | | More progress on creation order for attribbutes - they are now basically working for "compact" attribute storage. Tested on: FreeBSD/32 6.2 (duty) Mac OS X/32 10.4.8 (amazon)
* [svn-r13117] Description:Quincey Koziol2007-01-071-10/+10
| | | | | | | Clean up some warnings from Windows. Tested on: FreeBSD/32 6.1 (duty)
* [svn-r13045] Description:Quincey Koziol2006-12-121-99/+99
| | | | | | | | | | | | | | Switch from using H5L_index_t/H5L_INDEX_<foo> to H5_index_t/H5_INDEX_<foo> in order to accommodate indices on aspects of attributes as well as links. Add basic support for deleting attributes in dense storage (needs more support/tests for shared attributes in dense storage still). Misc. cleanups, etc. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r12983] Description:Quincey Koziol2006-11-271-48/+30
| | | | | | | | | Merge H5Pget/set_create_tracking / H5Pget/set_create_index routines into H5Pget/set_creation_order. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r12977] Description:Quincey Koziol2006-11-271-1/+521
| | | | | | | | Added H5Gget_info[_by_idx] routines and deprecated H5Gget_num_objs routine. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r12976] Description:Quincey Koziol2006-11-271-5/+61
| | | | | | | | | | | Add # of attributes to the object info struct and deprecate H5Aget_num_attrs(). Tested on: FreeBSd/32 4.11 (sleipnir) Linux/32 2.4 (heping) Linux/64 2.4 (mir) AIX/32 5.? (copper)
* [svn-r12974] Description:Quincey Koziol2006-11-271-9/+423
| | | | | | | | | | | Add H5Oget_info() and H5Oget_info_by_idx() API routines & tests Tested on: FreeBSD/32 4.11 (sleipnir) Linux/32 2.4 (heping) Linux/64 2.4 (mir) Mac OS X/32 10.4.8 (amazon) AIX/32 5.? (copper)
* [svn-r12956] Description:Quincey Koziol2006-11-211-2/+515
| | | | | | | | | Add tests for H5Oopen_by_idx() (in a rare fit of superlative coding I apparently got the implementation complete correct in my earlier checkin :-) Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r12952] Description:Quincey Koziol2006-11-201-177/+697
| | | | | | | | | | Add tests for H5Literate(), in all combinations. Sweep up a few minor issues with H5Literate() that the tests exposed. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r12949] Description:Quincey Koziol2006-11-201-11/+345
| | | | | | | | | | | | | | | | Finish implementation of H5Literate() [still needs real tests] Clean up datatype macro warnings a bit more. Unify iterator callback macros and put up in public header file, with the iterator directions. Tested on: Mac OS X/32 10.4.8 (amazon) FreeBSD/32 4.11 (sleipnir) Linux/32 2.4 (heping) Linux/64 2.4 (mir) AIX/32 5.? (copper)
* [svn-r12932] Description:Quincey Koziol2006-11-171-10/+10
| | | | | | | | | | | | Basic support for H5Literate() routine. Still needs to be fleshed out and refactored to simplify. Also, needs tests. :-) Tested on: FreeBSD/32 4.11 (sleipnir) Linux/32 2.4 (heping) Linux/64 2.4 (mir) AIX/32 5.? (copper) Mac OS X/32 10.4.8 (amazon)
* [svn-r12922] Description:Quincey Koziol2006-11-161-5/+238
| | | | | | | | | | | Add support for "delete by index" to "old-style" groups, finishing implmentation of H5Ldelete_by_idx() routine. Tested on: FreeBSD/32 4.11 (sleipnir) Linux/32 2.4 (heping) Linux/64 2.4 (mir) Aix/32 5.? (copper)
* [svn-r12921] Description:Quincey Koziol2006-11-161-144/+264
| | | | | | | | Finish adding more tests to "delete by index" for compact/dense groups. Tested on: Mac OS X/32 10.4.8 (amazon) FreeBSD/32 4.11 (sleipnir)
* [svn-r12919] Description:Quincey Koziol2006-11-151-4/+0
| | | | | | | | | More progress toward getting H5Ldelete_by_idx() working - removals on densely stored links should work now (still needs some more tests). Still need to write code for removals on "old-style" groups. Tested on: FreeBSD/32 4.11 (sleipnir)
* [svn-r12910] Description:Quincey Koziol2006-11-141-0/+213
| | | | | | | | | | | More progress toward getting H5Ldelete_by_idx to work fully - can now delete by index in compact group (but not dense groups or "old-style" groups yet). Need to go write a v2 B-tree routine to delete from the B-tree by index before the dense storage will work properly... Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r12906] Description:Quincey Koziol2006-11-131-10/+10
| | | | | | | | | | | | | | | | Straighten out some convoluted code when links were being deleted, which could cause the "delete" callback for user-defined links to not get called when the group they were in was deleted. Had to compromise on the "delete" callback though - only calls the callback with the ID for the file the link is in, instead of the group, since the group is being held open upstream in the calling sequence during a group deletion and this prevents a group and its ID from being created. (This could possibly be worked around, but would cause a fair bit of havoc in the code and I'm not entirely certain it's worth it...) Tested on: Linux/32 2.6 (chicago)
* [svn-r12895] Description:Quincey Koziol2006-11-131-155/+304
| | | | | | | | | | | | | Add new H5Lget_val_by_idx() routine & tests. Also includes most of changes for H5Ldelete_by_idx() routine. Tested on: Mac OS X/32 10.4.8 (amazon) FreeBSD/32 4.11 (sleipnir) Linux/32 2.4 (heping) Linux/64 2.4 (mir) AIX/32 5.? (copper)
* [svn-r12894] Description:Quincey Koziol2006-11-121-70/+134
| | | | | | | | | | | | Add H5Lget_name_by_idx routine & tests Move more H5G routines to deprecated API file Tested on: FreeBSD/32 4.11 (sleipnir) w/threadsafe Linux/32 2.4 (heping) C++ & FORTRAN Linux/64 2.4 (mir) w/build-all & enable_compat1.6 AIX/32 5.? (copper) w/parallel & FORTRAN
* [svn-r12890] Description:Quincey Koziol2006-11-111-51/+207
| | | | | | | | | | | | | | | | | Finished implementation of H5Lget_info_by_idx for all cases: old vs. new group formats, compact vs. dense new link storage, increasing vs. decreasing vs. native iteration order. Also, refactor symbol table "foo by index" routines to be more generic and share more code by using a single B-tree iteration callback which makes callbacks to a specific "get <foo>" callback. Tested on: Mac OS X/32 10.4.8 (amazon) FreeBSD/32 4.11 (sleipnir) Linux/32 2.4 (heping) Linux/64 2.4 (mir) AIX/32 5.? (copper)
* [svn-r12878] Description:Quincey Koziol2006-11-071-8/+59
| | | | | | | | Flesh out support for looking up link info by index, some cases for using dense storage are working now. Tested on: Linux/32 2.6 (chicago)
* [svn-r12875] Description:Quincey Koziol2006-11-071-1/+1
| | | | | | | | | | Fix retrieving name for references to root group. Also, move 'ref' test earlier in testing, right after 'getname' test Tested on: Linux/64 2.6 (chicago2)
* [svn-r12872] Description:Quincey Koziol2006-11-071-0/+95
| | | | | | | | | | | | Implement basic framework for H5Lget_info_by_idx and get it working for creation order indices on compact groups. Clean up code a bit. Close resource link in user-defined link traversal. Tested on: Linux/32 2.6 (chicago)
* [svn-r12865] Description:Quincey Koziol2006-11-061-16/+16
| | | | | | | Change name of H5Lunlink to H5Ldelete, per our design meeting last Friday. Tested on: Linux/32 2.6 (chicago)
* [svn-r12864] Description:Quincey Koziol2006-11-061-7/+7
| | | | | | | | Changed H5Lget_linkval() to H5Lget_val(), per our design discussion last Friday afternoon. Tested on: Linux/32 2.6 (chicago)
* [svn-r12860] Description:Quincey Koziol2006-11-041-13/+13
| | | | | | | | Update H5Iget_name() tests to reflect that the name of the object for an ID can be found in many more situations now. Tested on: FreeBSD/32 4.11 (sleipnir)
* [svn-r12842] Description:Quincey Koziol2006-11-021-6/+6
| | | | | | | | | | | | | | | | Refactor generic property list initialization code to put property list specific routines in property list modules, instead of scattered to the four winds. Also, introduce property list class initialization objects, to make adding new property list classes in the library easier. Fix daily test failure by using H5Pget_elink_prefix() API routine instead of looking at the "raw" generic property list information. Tested on: Mac OS X/32 10.4.8 (amazon) FreeBSD/32 4.11 (sleipnir) w/threadsafe Linux/32 2.4 (heping) w/C++ & FORTRAN Linux/64 2.4 (mir) w/build-all & 1.6 compat
* [svn-r12835] Description:Quincey Koziol2006-10-311-59/+59
| | | | | | | | | Change H5Lget_linkinfo() to H5Lget_info() to better align with coming API changes. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r12834] Description:Quincey Koziol2006-10-311-2/+11
| | | | | | | | Uncomment out tests that were accidentally left out. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r12833] Description:Quincey Koziol2006-10-311-11/+2
| | | | | | | | Clean up more warnings... Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r12831] Changed the API for "unpacking" an external link value to take ↵James Laird2006-10-301-4/+13
| | | | | | | | | | the size of the linkval buffer, per Elena and Frank's suggestions while revising the documentation. Added error checking using this size, as well as a couple of tests. Tested on juniper, kagiso, and sol.
* [svn-r12830] Description:Quincey Koziol2006-10-301-5/+378
| | | | | | | | | Finish internal work necessary to track creation order in v2 B-tree when group is in "dense" storage form. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r12827] Description:Quincey Koziol2006-10-301-4/+9
| | | | | | | | Correct typo that was causing tests to fail. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r12825] Description:Quincey Koziol2006-10-301-7/+393
| | | | | | | | Rudimentary support for creating creation order index (but not inserting links in it yet). Testedon: Mac OS X/32 10.4.8 (amazon)
* [svn-r12751] Purpose:Albert Cheng2006-10-121-2/+2
| | | | | | | | | | | | | | | | Bug fix (related to 544) Description: h5_get_file_size() was coded to return 0 if failed but file size can be 0. Changed the failure return value to -1 which is allowed by the returned type of off_t which is a signed type. Also changed the checking code of the stat call to just == 0 since that is how it is defined. Test: Could test it in heping only. Both Sol and Copper failed to compiled due to error in the Direct IO VFD code.
* [svn-r12740] Description:Quincey Koziol2006-10-101-1/+0
| | | | | | | | | | | Update datasets and the layout, attributes and fill-value object header messages to use the latest version of the file format flag. Tested on: FreeBSD 4.11 (sleipnir) Linux/64 2.4 (mir) Linux/32 2.4 (heping)
* [svn-r12719] Configured external links to (by default) use the FAPL of the ↵James Laird2006-10-041-1/+1
| | | | | | | | | | parent file, rather than H5P_DEFAULT. This lets them be used with stdio and directio drivers. Tested on mir and juniper (check-vfd takes a long time!).
* [svn-r12700] Alert:Quincey Koziol2006-10-021-1047/+1184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | File format is not stable, don't keep files produced! Description: First stage of checkins modifying the format of groups to support creation order. Implement "dense" storage for links in groups. Try to clarify some of the symbols for the H5L API. Add the H5Pset_latest_format() flag for FAPLs, to choose to use the newest file format options (including "dense" link storage in groups) Add the H5Pset_track_creation_order() flag for GCPLs, to enable creation order tracking in groups (although no index on creation order yet). Remove --enable-group-revision configure flag, as file format issues are now handled in a backwardly/forwardly compatible way. Clean up lots of compiler warnings and other minor formatting issues. Tested on: FreeBSD/32 4.11 (sleipnir) w/threadsafe Linux/32 2.4 (heping) w/FORTRAN & C++ Linux/64 2.4 (mir) w/enable-v1.6 compa Mac OSX/32 10.4.8 (amazon) AIX 5.3 (copper) w/parallel & FORTRAN
* [svn-r12659] This is VMS maintenance check-in.Elena Pourmal2006-09-111-1/+6
| | | | | | | | | | | Some of the tests cannot be run on VMS since they try to open the same file twice. Solution: Bypass the tests according to the H5_CANNOT_OPEN_TWICE variable setting. Platforms tested: VMS server and heping.
* [svn-r12627] Skipped links and fheap tests when stdio file driver is used.James Laird2006-08-241-1/+2
| | | | | | | | | These errors should be investigated more thoroughly later. The underlying problem in links.c seems to be that files opened multiple times don't share the same H5F_shared_t struct. Perhaps identifying when this is the case would be helpful? Tested on mir.
* [svn-r12623] Added H5Fget_intent() function to get the "intent" of a file ↵James Laird2006-08-241-3/+16
| | | | | | | | | (read/write or read-only). Added this to external links, so that external files are opened with the same intent as the source file. Added tests.
* [svn-r12596] Refactored how external files are opened and closed.James Laird2006-08-181-10/+300
| | | | | | | | Object header locations (H5O_loc_t's) can now "hold open" a file and decrement its open object count when they close. This means that locations (H5O_loc_t's and H5G_loc_t's) should always be freed. Added more thorough tests to ensure that external files are closed.
* [svn-r12544] Description:Quincey Koziol2006-08-041-31/+67
| | | | | | | | | | | | | | Clean up compiler warnings/failures in test/links.c, especially when --disable-production flag used with --enable-group-revision Modify binary dumping in h5dump to clean up files created [a band-aid solution to not actually creating the files in the srcdir, but better than just leaving the files around... :-/ ] Tested: FreeBSD 4.11 (sleipnir) (w/ configure flags above) Too minor to require h5committest
* [svn-r12533] Standardized the way path prefixes are passed to external links ↵James Laird2006-08-031-4/+1
| | | | | | using a LAPL. Now there are H5Pget and H5Pset functions for "elink_prefixes".
* [svn-r12530] Skipped objcopy and links tests when certain file drivers are used.James Laird2006-08-031-1/+1
|
* [svn-r12529] Fixed a couple of bugs that were causing trouble for Windows ↵James Laird2006-08-031-1/+1
| | | | | | builds (not sure why they weren't on other systems). Thanks, Kent!
* [svn-r12528] Added User-Defined links to the library.James Laird2006-08-021-144/+3427
| | | | | | | | | | | | | | Users can create external links using H5L_create_external(). These links point to an object in another HDF5 file. Users can alter the behavior of external links or create new kinds of links by registering callbacks using the H5L interface. Added tests, tools support, etc. Also a number of other, minor changes have been made (some restructuring of the H5L interface, for instance). Additional documentation and examples are forthcoming.
* [svn-r12519] Fixed "make check-vfd"James Laird2006-07-311-27/+38
| | | | | | | | | | "make check-vfd" will now run all tests in the test directory with different file drivers (at least, all of those tests that use the testing framework's FAPL). Tests that fail will be skipped. This is not a perfect fix, but is better than nothing. Along with this change, check-vfd should be added to the Daily Tests.
* [svn-r12461] Cleaned up the names of some internal API functions, cleaned up ↵starfire2006-07-101-10/+10
| | | | | | | | | comments, fixed a few tests that used incorrect names for H5L APIs (formerly hidden behind H5_GROUP_REVISION ifdefs Mostly cosmetic changes, tested on mir.
* [svn-r12452] Purpose:James Laird2006-07-051-108/+918
| | | | | | | | | | | | | | | | | | | | | | Feature Description: Revised Link APIs. Solution: New link APIs use H5L* H5*create_expand do not create links to the objects created; this must be done manually with H5Llink. Added APIs to link an object given its ID (H5Llink), to copy links (H5Lcopy), and changed creation APIs (H5Lcreate_hard and H5Lcreate_soft) and query API (H5Lget_linkinfo instead of H5Gget_objinfo). All old APIs are still supported in H5Gdeprec.c . Platforms tested: sol, mir, copper Misc. update: Forgot to update MANIFEST and release docs. Will do after checkin.
* [svn-r12440] Purpose:Quincey Koziol2006-06-271-1/+1
| | | | | | | | | | | Code cleanup Description: Trim trailing whitespace in Makefile.am and C/C++ source files to make diffing changes easier. Platforms tested: None necessary, whitespace only change