summaryrefslogtreecommitdiffstats
path: root/tools/h5copy/h5copy.c
Commit message (Collapse)AuthorAgeFilesLines
* Split tools into src and test - remove foldersAllen Byrne2016-10-271-534/+0
|
* [svn-r30189] Description:Quincey Koziol2016-07-181-12/+12
| | | | | | | | | Clean up more warnings: drop the warning count from ~1310 down to ~940, with only 31 types of warnings in 148 files (down from 38 types in 167 files). Tested on: MacOSX/64 10.11.5 (amazon) w/serial & parallel (h5committest forthcoming)
* [svn-r30113] Description:Quincey Koziol2016-06-281-9/+9
| | | | | | | | Clean up warnings (from 2774 -> 1560, with my standard debug build) Tested on: MacOSX/64 10.11.5 (amazon) w/serial, parallel & production (h5committest forthcoming)
* [svn-r29889] HDFFV-9775: Add enable-error-stack to tools lib and refactor ↵Allen Byrne2016-05-041-65/+89
| | | | h5repack error handling.
* [svn-r25755] Removed spurious casts in a few HDfree() statements.Dana Robinson2014-10-311-2/+2
| | | | | | | Discovered when I temporarily #defined HDfree() to a more complicated function while investigating something. Tested on a local linux VM. This is a very minor change.
* [svn-r24020] Description:Quincey Koziol2013-08-171-8/+8
| | | | | | | | Clean up compiler warnings Tested on: Mac OSX/64 10.8.4 (amazon) w/C++ & FORTRAN (too minor to require h5committest)
* [svn-r23411] HDDFV-8322: Free allocations in command line parsing.Allen Byrne2013-03-211-36/+18
| | | | Tested: local linux
* [svn-r23395] Description:Quincey Koziol2013-03-201-16/+23
| | | | | | | | | | | | Bring Coverity changes from branch to trunk: r20682: fixed coverity: 76, 77, 635, 636, 1164, 1165, 1166, 1121, 1122, 1117, 1343 Tested on: Mac OSX/64 10.8.3 (amazon) w/C++ & FORTRAN (too minor to require h5committest)
* [svn-r22004] Reduced warnings and fixed conflicts resulting from including ↵Allen Byrne2012-02-281-2/+2
| | | | | | h5tools.h Tested: local linux
* [svn-r21985] Tools must call h5tools_init before command_line parsing or ↵Allen Byrne2012-02-241-0/+1
| | | | | | | | using tools_mesg functions. Tools library uses alais variables for stdout, stderr and tools library uses HDfprintf() functions. Tested: local linux
* [svn-r21982] Correct HD prefix in tools for exitAllen Byrne2012-02-241-1/+1
| | | | Checked for HD support.
* [svn-r21981] Correct HD prefix in tools for fprintfAllen Byrne2012-02-241-1/+1
| | | | Checked for HD support.
* [svn-r20203] Purpose:Jonathan Kim2011-03-081-4/+10
| | | | | | | | | | | | | Fix Bug 2120 - h5copy: improve to copy an object into same HDF file Description: Before the fix users can't copy an object (dataset or group) with different name if input file (-i) and output file (-o) is same. This feature would be useful to clone any object with different name and reuse contents. Tested: jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), Cmake (jam)
* [svn-r19637] Purpose:Jonathan Kim2010-10-191-291/+290
| | | | | | | | | | | | | | Fix nightly build error on non-linux platforms related to the Fix for bug# 2040 - h5copy should fail gracefully for expected failure copying to non-exist nested group without -p option. (r19633) Description: - Updated to use standard C functions instead of strndup() due to failure on non-linux platforms. - Changed to Use HDxxx macros for future reference. - Correct indentation. Tested: jam, amani, heiwa, linew
* [svn-r19633] Purpose:Jonathan Kim2010-10-181-2/+24
| | | | | | | | | | Fix for bug# 2040 - h5copy should fail gracefully for expected failure copying to non-exist nested group without -p option. Description: Fixed h5copy to fail gracefully when copying object to non-exist group without -p option. This is expected to be failed. Tested: jam, amani, heiwa
* [svn-r19605] Purpose:Jonathan Kim2010-10-151-23/+0
| | | | | | | | | | | Backout the previous changes (r19598): (Fix for bug# 2040 - h5copy should fail gracefully for expected failure copying to non-exist nested group without -p option.) Description: Some failure occurred on talwit, so backout the changes and will put it back after the fix. (Fixed h5copy to fail gracefully when copying object to non-exist group without -p option. This is expected to be failed. Merged from hdf5 trunk r19598.)
* [svn-r19598] Purpose:Jonathan Kim2010-10-141-0/+23
| | | | | | | | | | Fix for bug# 2040 - h5copy should fail gracefully for expected failure copying to non-exist nested group without -p option. Description: Fixed h5copy to fail gracefully when copying object to non-exist group without -p option. Expected to be failed. Tested: jam, amani, heiwa
* [svn-r19400] Purpose:Jonathan Kim2010-09-161-1/+1
| | | | | | | | | | Fix for Bug1975 h5diff - support recursive comparison on group when specified as an object Description: Compare member objects and groups recursively when two files or groups are specified to be compared. Support parallel diff and handling symbolic links accordingly. Tested: jam, amani, heiwa
* [svn-r19292] Description:Quincey Koziol2010-08-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge r19290 & r19291 from 1.8 branch to trunk: r19290: Correct another error in metadata accumulator dirty region calculations (this time with a corner case when freeing data in the file). r19291: Avoid getting object information for soft/external links if we aren't going to traverse across the link itself. 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-r18759] pull r18757 from 1.8 branchAllen Byrne2010-05-111-14/+16
| | | | | | | | | Enable tools lib to be built as a dll on windows. Added two get/set functions for progname and d_status. Also add windows import/export declarations to functions. Updated error_mesg() and warn_mesg() to remove progname argument and use get functions Tested: Windows, linux
* [svn-r18614] Purpose:Jonathan Kim2010-04-221-1/+28
| | | | | | | | Fix for bug 1817 : h5copy fail to copy dangling link by specifying link path directly Tested: jam, amani, linew
* [svn-r18449] Purpose:Jonathan Kim2010-03-251-3/+3
| | | | | | | | Resolve build issue on Sloaris due to white space from the previous checkin r18447 Tested: jam, amani , linew
* [svn-r18447] Purpose:Jonathan Kim2010-03-241-5/+15
| | | | | | | | | | | | Bug1727 - NPOESS: h5copy should copy region references Description: Tested and added test cases from previous checkin r18319 Reference Manual and tool's usage section for '-f ref' option is updated for more comprehensibility. Tested: jam
* [svn-r18055] Bug fix: 1192Albert Cheng2009-12-261-2/+2
| | | | | | | | Description: Fixed exit code (sometimes return code in Main) to follow the HDF5 standards. Tested: H5committested plus serial test in Jam.
* [svn-r17715] Fixed to exit failure if no command option is given.Albert Cheng2009-10-211-1/+1
| | | | Tested: Jam
* [svn-r15628] Description:Quincey Koziol2008-09-161-21/+21
| | | | | | | | | | | | | Remove trailing whitespace from C/C++ source files, with the following script: foreach f (*.[ch] *.cpp) sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f end Tested on: Mac OS X/32 10.5.5 (amazon) No need for h5committest, just whitespace changes...
* [svn-r15439] Add the following patch Peter Cao2008-08-061-1/+1
| | | | | | | | | | | | | | | | === The following patch to h5copy.c on or near line 173 makes the tool substantially more useful... *flag = (*flag) | fla; Because the command-line option parsing permits multiple '-f' arguments, this will have the effect of or'ing the flags together so one can do someting like.... ~/tmp/hdf5-1.8.1/tools/h5copy/h5copy -i multi_ucd3d.h5 -s block5 -o gorfo -d foo -f shallow -f soft Mark C. Miller, Lawrence Livermore National Laboratory email: mailto:miller86@llnl.gov ===
* [svn-r14284] Description:Quincey Koziol2007-11-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add H5Lvisit_by_name() API routine to library. Eliminated all (five!) other group traversal routines and changed them all to use the new API routine. Cleaned up output of h5ls & h5stat: - Issue error when requesting recursive traversal of a file with the "group info" flag, but no group given - Print info about root group in all(?) appropriate situations - Don't print "verbose" information about root group until the root group is in the list of objects to display (mostly because h5ls & h5stat had a different twist on traversing the groups in a file that the other utilities) Tested on: FreeBSD/32 6.2 (duty) in debug mode FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN, in production mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, in production mode Mac OS X/32 10.4.10 (amazon) in debug mode Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
* [svn-r13301] Description:Quincey Koziol2007-02-141-69/+95
| | | | | | | | | | | Add '-p' flag to h5copy tool, to create intermediate "parent" groups that don't exist in destination file yet. Add more tests to h5copy script. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r13299] Description:Quincey Koziol2007-02-141-0/+6
| | | | | | | | | | | | Put paths to testfile input & output directories in one place, making it easier to modify them if we choose to re-arrange our testfile locations in the future (this should probably be carried over to other test scripts). Make h5copy exit more cleanly if no command line parameters are given. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r13297] Description:Quincey Koziol2007-02-141-3/+3
| | | | | | | | | | | | | | | | Add small 'h5mkgrp' tool to create groups in an HDF5 file from the command line, allowing the group structure for a file to be created in a script. This tool closely follows the 'mkdir' command line tool in UNIX/Linux. Allow tool library applications to pass a FAPL to the h5tool_fopen() call, giving some additional flexibility to tools which are adding objects to an existing HDF5 file (like h5copy & h5mkgrp). Fix missing files in MANIFEST from previous checkin(s). Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r13292] Description:Quincey Koziol2007-02-131-2/+8
| | | | | | | | | | | | | | | Add feature to h5copy to allow it to add an object to an existing file, instead of blowing away existing file. Modify h5tools_fopen() routine to take access flags, so it can be used to open an existing file for writing. Added check to h5copy test script that verifies it has produced a file with the correct structure. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r13253] Updated all C and C++ style source code files with the THG ↵Albert Cheng2007-02-071-2/+3
| | | | | | | | | copyright notice. Tested platform: Kagiso only since it is only a comment block change. If it works in one machine, it should work in all, I hope. Still need to check the parallel build on copper.
* [svn-r13164] Add nullmsg flag for testing onlyPeter Cao2007-01-221-0/+4
|
* [svn-r13160] Fixed help information to use stdout instead of stderr.Peter Cao2007-01-191-5/+2
|
* [svn-r12869] Description:Quincey Koziol2006-11-061-18/+18
| | | | | | | | Rename new H5Gcopy() routine to H5Ocopy() as discussed in last Friday's design discussion. Tested on: Linux/32 2.6 (chicago)
* [svn-r12680] Description:Quincey Koziol2006-09-251-2/+2
| | | | | | | | | Review, revise & checkin in Peter's latest round of object copy changes, which add basic support for datasets & attributes with reference datatypes. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r12634] Purpose:Albert Cheng2006-08-281-1/+1
| | | | | | | | | | | | Code cleanup. Description: Removed argc and argv from the function arguments of h5tools_get_fapl() and h5tools_fopen(). They were used to call MPI_Init() which was no longer needed. Tested: heping (serial and parallel).
* [svn-r12628] Pedro Vicente Nunes2006-08-241-9/+10
| | | | updated the usage message of h5copy
* [svn-r12626] Pedro Vicente Nunes2006-08-241-129/+165
| | | | | h5copy, new behavior according to RFC: introduction of -i, -o, -s , -d switches for file and object names
* [svn-r12520] bug fixPedro Vicente Nunes2006-07-311-1/+15
| | | | | | added a call to h5tools_close tested: linux
* [svn-r12510] add a test for a missing file namePedro Vicente Nunes2006-07-271-0/+10
| | | | test: linux
* [svn-r12487] Pedro Vicente Nunes2006-07-201-3/+1
| | | | updated some comments
* [svn-r12483] Removed some white space from h5copy.cPedro Vicente Nunes2006-07-191-11/+11
| | | | | | his line, and those below, will be ignored-- M h5copy/h5copy.c
* [svn-r12482] new tool h5copyPedro Vicente Nunes2006-07-191-0/+355
it uses the API function H5Gcopy to copy groups and datasets from file to file, read from a command line note: the test script is not finished yet tested on heping, copper, shanti