Commit Graph

11609 Commits

Author SHA1 Message Date
Quincey Koziol
e5a5aed0cd [svn-r19208] Description:
Switch from using "UINT16_MAX" to "64 * 1024" for assert macro.

Tested on:
    None, just eyeballed.
2010-08-10 08:26:14 -05:00
Albert Cheng
9d208e402d [svn-r19204] Bug 1917: post cleanup.
fseek64 was used to support large file access for the STDIO driver back in
version 1.2.2 in year 2000.  Some how it was not included in version 1.4.0.
Now, fseeko64 is used to support large file. There is no more need for fseek64
which is not a standard call. Removed its presence from configure and related
files.

Tested: jam for configure only.
2010-08-09 17:12:38 -05:00
Allen Byrne
1e263eb46c [svn-r19200] Added tests that subdirectories exist before using ADD_SUBDIRECTORY CMake command
Added cache set command for default install prefix

Tested: local linux
2010-08-09 12:19:20 -05:00
Allen Byrne
56b00bca02 [svn-r19199] new expected output file for BZ1953 fix 2010-08-09 12:17:30 -05:00
Allen Byrne
02b5824f57 [svn-r19198] [BZ1953]implementation for the proposed changes suggested by the "h5dump_output_option" RFC. This required that the region reference code be duplicated and reduced to allow the do_bin_output() function to understand region references. The container type-id also needed to be propagated into the do_bin_output() function and functions referenced (render_bin_output*).
Existing tests tested the binary function, so only one test was added to test the region reference generated file.
Tested: local linux
2010-08-09 12:15:06 -05:00
Raymond Lu
a586c760ee [svn-r19196] Defined the file format version H5F_LIBVER_18 to prepare for the 1.10 release. It isn't used
anywhere yet.

Tested on jam - very simple change and not used.
2010-08-09 11:21:13 -05:00
Albert Cheng
b439d940fd [svn-r19194] Bug fix: ID 1917
Fixed a typo in the Windows definitions. Had __ftelli64, should be _ftelli64.

Tested by Allen in Windows platform.
2010-08-09 10:45:41 -05:00
Albert Cheng
d5817f6ac2 [svn-r19187] Bug fix: ID 1917
The STDIO only checked for fseeko and incorrectly assumed it can support file
sizes larger than 32bits. Fixed it by making to use fseeko64 if supported, else
use fseeko.  To simplify the code, assume fseeko which is a POSIX function must
be supported. Therefore, fseek is not used at all.
(Note: the above applies to Unix-like system.  The Windows platform has
hardcoding using Windows functions which are NOT POSIX compliant.)

Tested: h5committested. Also tested in BP (AIX) 32/64 and enable/disable-largefile.
2010-08-06 14:47:06 -05:00
Albert Cheng
7b375507ae [svn-r19186] Bug fix: ID 1917
In some machine (Linux), when --disable-largefile is used, it claims it has
fseeko64 but off64_t is NOT supported.  Moved the test of fseeko64 and ftello64
to where fseek64 is so that they are tested only if off64_t is supported.

Tested: h5committested.
2010-08-06 14:37:50 -05:00
Allen Byrne
ab1051e0b0 [svn-r19184] Corrected h5repack verbose test for windows
Updated tools/lib source dir variable for source list

Tested: local linux
2010-08-06 13:06:30 -05:00
Quincey Koziol
ae32ba97fd [svn-r19182] Description:
Bring r19179 from trunk to 1.8 branch:

Bring changes from Coverity branch back to trunk:

r19079 & 19080:
[BZ1942]  h5dump -u to generate XML, it does not respect the -m option

xml version of dump_data function didn't check for use of fp_format variable.

Added new test expected file for committed bug 1942

r19103, 19104 & 19105:
[BZ1821] h5repack -v did not display correct output for a selected compression. Needed new test for comparing output of -v option.

Added new test file for solution to BZ1821

BZ1821 - Bring test changes from the shell script actually used.

Tested on:
    Mac OS X/32 10.6.4 (amazon) debug & production
    (h5committested on branch)
2010-08-06 12:51:53 -05:00
Raymond Lu
2d9d60aef1 [svn-r19177] Took out several redundant lines when object IDs are closed.
Tested on jam.
2010-08-05 12:16:51 -05:00
Raymond Lu
bb83e1ff9a [svn-r19172] Bug fix for #1239 - The filter's public function CAN_APPLY should return htri_t not
herr_t.  To minimize the change of the library's behavior, in the function 
H5Z_prelude_callback of H5Z.c, if the return value of can_apply is FALSE and
the filter is MANDATE, this function returns a FAILURE.  If the return value is FALSE 
but the filter is OPTIONAL, this function returns a SUCCEED.  During the IO, the filter 
will fail and return a size of zero.  But the pipeline will skip this filter. 

Tested on jam, linew, and amani.  Tested on jam with szip.
2010-08-05 10:53:16 -05:00
Albert Cheng
30ac7d89a2 [svn-r19170] Bug fix: 1917.
The previous fix had the Windows code in H5private.h but they should have been
in H5win32defs.h which holds all Windows-specific definitions.  Moved the fix.

Tested: BP (AIX) to confirm the fix is still valid. Windows tests will occur
in daily tests tonight.
2010-08-04 19:13:49 -05:00
Quincey Koziol
ecee0e5e1e [svn-r19169] Description:
Bring r19168 from trunk to 1.8 branch:

	Clean up compiler warning

Tested on:
	None, eyeballed only (tested on trunk)
2010-08-03 23:22:21 -05:00
Albert Cheng
e440364f8e [svn-r19166] Bug fix: 1917.
Description:
test/big incorrectly determined not able to write files larger than 2GB and
skipped the SEC2 and STDIO driver tests.  The reason was because it was using
off_t while the SEC2 driver is using lseek64 which expects off64_t type.

Solution:
Created a new HDoff_t which is set to off_t or off64_t or other appropriate
type depending on which of lseek or lseek64 is available. Changed SEC2 file
driver and the big test to use this common definition.

Tested:
In BP (AIX), using --enable and --disable-largefile, for both 32 and 64 bits
modes.  Did not do h5committest because: 1. the error was exposed in the remote
BP machine; 2. the change is trivial.
2010-08-03 18:33:43 -05:00
Allen Byrne
28ffed9ebf [svn-r19164] Add configure changes from r19159 to CMake. 2010-08-02 09:04:20 -05:00
Albert Cheng
8dc3f63a87 [svn-r19159] Added the tests for fseeko64 and ftello64 which will be used by the STDIO
VFD if they are available.

Tested: jam only since it was tests for two new functions that are not used by
the code yet.
2010-07-30 15:05:25 -05:00
Quincey Koziol
77b2235f8b [svn-r19158] Description:
Bring r19156 from trunk to 1.8 branch:

    Bring revisions from Coverity branch back to trunk:

r19044:
Coverity #449 - Line 1560 called function H5O_chunk_protect for 2 pointers to allocate. But when there's failure on the second one, the first wasn't freed 
(H5O_chunk_unprotect).  We fixed it by freeing the pointers when an error happens.

r19045:
Fixed coverity issue # 319.  Free sec_node in done if it is not NULL.

r19046:
Add intended but missing assignments to initialize pointers to NULL (coverity issue fixes).

r19049:
Hdf5_1_8_coverity branch was recreated from hdf5_1_8 branch in revision 18839 without fix for Coverity issue #84 having been propagated to the hdf5_1_8 branch.  This revision adds the fix again.

r19060:
added parentheses to see if they will keep subversion from getting confused

r19061:
Fix coverity item 139.  Fixed incorrect condition for freeing buffer on error.

Fix coverity items 20 and 21.  Removed unused NTESTS facility from dtypes.c.

Cleanup in H5Shyper.c.

r19062:
Fix coverity item 450.  Check to see if chk_proxy has been allocated before
attempting to free it.

Fix coverity item 454.  Check to see if allocation of buf failed in
H5D_fill_refill_vl.

Fix coverity items 455-457.  Initilize hid_t's to -1, check their value before
attempting to close them, and check if the close failed.

r19063:
New fix to address coverity issue #84.  Check that pointers in H5Z_xform_find_type are not NULL before passing them to H5T_cmp.

Tested on:
    Mac OS X/32 10.6.4 (amazon) w/debug & production
    (h5committested on Coverity branch)
2010-07-30 13:21:54 -05:00
Quincey Koziol
03ae0fecf0 [svn-r19157] Description:
Bring r19078 from Coverity branch to 1.8 branch (code doesn't exist on
trunk):

    Purpose:

        Resolve Memory Leaks

    Description:

        Free saved ID structures in H5I interface when library shuts down.

Tested on:
    Mac OS X/32 10.6.4 (amazon) w/debug & production
    (Too minor to require h5committest)
2010-07-30 13:19:14 -05:00
Larry Knox
c173b3fee4 [svn-r19155] Remove line in clean target that removes installed header files.
Tested with h5 committest on amani, jam, heiwa and linew.
2010-07-29 17:26:42 -05:00
Quincey Koziol
6e3ff79f0c [svn-r19154] Description:
Bring r19153 from trunk to 1.8 branch:

    Bring changes on Coverity branch back to trunk:

r19040:
Fixed coverity #440 - NULL check after dereference.  We moved the NULL check up
into the IF block and changed it to assertion.

r19041:
Maintenance: Addressed Coverity issues 441 and 449 by initializing proper
variables

r19042:
In function H5O_chunk_protect (H5Ochunk.c):
 - Initialize H5O_chunk_proxy_t pointers chk_proxy and ret_value.
 - Free chk_proxy on error.

r19043:
Addressed coverity issues 442 - 448 by initializing pointers to NULL.

Tested on:
    Mac OS X/32 10.6.4 (amazon) w/debug & production
    (Too minor to require h5committest)
2010-07-29 14:17:29 -05:00
Raymond Lu
87172f5ba1 [svn-r19152] Correction from the previous checkin for H5Oattribute.c. Because the attribute structure it
is shared now. The only situation that requires copying the data is when the metadata cache 
evicts and reloads this attribute. The attribute structure will be different in that 
situation. 

Tested on jam.
2010-07-29 14:02:47 -05:00
Elena Pourmal
617e106e2e [svn-r19149] Maintenance: Removed misleading information about the HDF4-to-HDF5 tools. The tools became
a part of the h4h5tools distribution long time ago, but the INSTALL file
             was not updated in the development branch and slipped into 1.8 releases and current trunk.
2010-07-29 10:17:46 -05:00
Neil Fortner
1e906a363b [svn-r19147] Purpose: Fix bug in direct IO driver
Description:

In certain circumstances, the direct I/O driver did not perform correctly when
data was unaligned.  The driver has been patched to fix this.  Also added some
potential performance improvements for the unaligned case, and strengthened the
test for whether the data needs to be aligned.

Tested: cobalt
2010-07-28 17:26:59 -05:00
Raymond Lu
489e95c9b9 [svn-r19143] Update for the bug fix of #1956. 2010-07-28 14:45:07 -05:00
Raymond Lu
1c5e481694 [svn-r19141] I added H5Itest.c.
Not tested yet.
2010-07-28 14:19:24 -05:00
Raymond Lu
95b8e5dcef [svn-r19139] In line 861, there's no need to allocate data buffer or copy the data because the attribute
structure is shared now.  Only do an assertion check, instead.

Tested the same change for 1.8.5 on jam - simple change.
2010-07-28 12:31:26 -05:00
Allen Byrne
b37a6d8a29 [svn-r19136] Added new file to windows project files.
Added new file to src/CMakeLists.txt
2010-07-28 08:51:30 -05:00
Quincey Koziol
73ee20aeb7 [svn-r19134] Description:
Bring r19133 from trunk to 1.8 branch:

        Correct traversal of user-defined links (including external links) to
retain path information of object, allowing H5Iget_name() queries to work
quickly (without searching entire destination file).  This required some
refactoring and addition of a mechanism to detect if a "fast" query was
performed (for the tests).

        Minor code cleanups, etc.

Tested on:
        FreeBSD/32 6.3 (duty) in debug mode
        FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
	(h5committest performed on trunk)
2010-07-28 07:33:13 -05:00
Quincey Koziol
f99e0b9f75 [svn-r19132] Description:
Reduce compiler optimizations for v10.6, to work around bug with static
constant char *'s.

Tested on:
    Linux/32 2.4 (jam) w/PGI
2010-07-27 08:10:18 -05:00
Quincey Koziol
5ef52d534e [svn-r19129] Description:
Correct another inadvertant use of macro instead of versioned API name.

Tested on:
	Eyeballed only, too minor to require h5committest
2010-07-26 13:51:00 -05:00
Quincey Koziol
8cdd66656e [svn-r19128] Description:
Change use of API wrapper to using versioned API routine (i.e. H5Eprint
-> H5Eprint2)

Tested on:
        None, eyeballed only, too simple
2010-07-23 13:55:36 -05:00
Quincey Koziol
697078568d [svn-r19126] Description:
Bring r19124 from trunk to 1.8 branch:

Add some error checking to the process of creating superblock extension.

Tested on:
       FreeBSD/32 6.3 (duty) in debug mode
	(h5committest performed on trunk)
2010-07-22 13:47:07 -05:00
Quincey Koziol
42a3da6c70 [svn-r19121] Description:
Bump the testing timer value from 30 to 60 minutes.

Tested on:
        None, just eyeballed, too simple to require test
2010-07-22 08:14:04 -05:00
Quincey Koziol
6a6114b8da [svn-r19119] Description:
Fix return value from FAIL to NULL.

Tested on:
        Eyeballed only  
        (too trivial to test)
2010-07-21 12:15:13 -05:00
Allen Byrne
e401f1e336 [svn-r19117] Corrected positioning of cmake variables in definition order. 2010-07-21 09:01:04 -05:00
Quincey Koziol
9e76314bb7 [svn-r19115] Description:
Rename H5AC_set() to H5AC_insert_entry()
        Get rid of H5C_set_skip_flags() & related flags

Tested on:
        Mac OS X/32 10.6.4 (amazon) w/debug
        (too simple to require h5committest)
2010-07-20 13:52:37 -05:00
Allen Byrne
c5b81d49b5 [svn-r19109] Corrected cmake location of ConfigureChecks.cmake 2010-07-20 10:44:49 -05:00
Allen Byrne
c6a498f081 [svn-r19106] Move Resources folder to config/cmake
Tested: Local Linux
2010-07-20 10:25:40 -05:00
Quincey Koziol
7976c8c0ec [svn-r19100] Description:
Bring r19099 from trunk to 1.8 branch:

	Fix const pointer issues for projection construction routine and also
bump time before alarm kicks in to terminate a test from 20 minutes to 30
minutes, to give the PGI compiler tests w/debugging enabled a chance to finish.

Tested on:
	Mac OS X/32 10.6.4 (amazon) w/debug
	Linux/32 2.6.18 (jam) w/PGI & debug
2010-07-19 13:38:40 -05:00
Quincey Koziol
71ac1a7996 [svn-r19098] Description:
Add notes for recent performance improvements & bug fixes (r19092 &
r19097).
2010-07-19 11:35:54 -05:00
Quincey Koziol
a37131ef04 [svn-r19097] Description:
Bring r19096 from trunk to 1.8 branch:

	Bring "round robin" metadata write strategy code from 'round_robin'
branch to the trunk.

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, in production 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.3 (amazon) in debug mode
       Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
               in production mode
2010-07-19 08:43:22 -05:00
Quincey Koziol
1ff6aff53d [svn-r19093] Description:
Bring r19092 from trunk to 1.8 branch:

	Bring "shape same" changes from LBL branch to trunk.  These changes
allow shapes that are the same, but projected into dataspaces with different
ranks to be detected correctly, and also contains code to project a dataspace
into greater/lesser number of dimensions, so the I/O can proceed in a faster
way.

	These changes also contain several bug fixes and _lots_ of code
cleanups to the MPI datatype creation code.

	Many other misc. code cleanup are included as well...

Tested on:
       FreeBSD/32 6.3 (duty) in debug mode
       FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
	(h5committested on trunk)
2010-07-19 03:09:49 -05:00
HDF Tester
cf6e2c99a4 [svn-r19091] Snapshot version 1.8 release 5 (snap4) 2010-07-18 23:56:15 -05:00
Larry Knox
dd5d27951f [svn-r19082] Made ';' after H5_PUSH_FUNC consistent throughout H5private.h to fix compile failure with Sun 5.10 C compiler.
Added Sun 5.10 compilers to RELEASE.txt.

Tested on linew.
Tested on amani, heiwa, and jam with h5committest.
2010-07-16 16:35:35 -05:00
Neil Fortner
c3340f256d [svn-r19077] Purpose: Fix bug 1951
Description:
A bug introduced in 1.8.5 causes local heap data blocks to be mis-aligned when
sizeof_offsets + 2*sizeof_lengths is not a multiple of 8.  In this case, the
address of the data block as stored in the heap prefix is aligned but the actual
data block is not.  This causes files created with these sizes to be corrupted,
and prevents uncorrupted files with these sizes to be unreadable.  Modified
local heap code to account for alignment.

Tested: jam, amani, linew (h5committest)
2010-07-16 11:41:22 -05:00
Allen Byrne
bb02990b22 [svn-r19073] Added check for no encoding to determine result for test
Tested: Windows
2010-07-15 12:51:04 -05:00
Albert Cheng
cbfc509750 [svn-r19071] Bug 1921: change to use mpiexec.
Changed the mpirun to mpiexec in the comment line.

Tested: jam (pp). No h5committest since this applied in parallel only.
2010-07-14 12:24:59 -05:00
Albert Cheng
5330eb088b [svn-r19069] Document update: ID 1921 change mpirun to mpiexec
Changed the use of mpirun to mpiexec which is the MPI-2 official standard.
2010-07-14 12:06:44 -05:00