Commit Graph

10905 Commits

Author SHA1 Message Date
Neil Fortner
b5008f9e3f [svn-r16294] Changes to links.c to prevent the core file driver from being used as the member
file driver for a family file.  This was causing problems with check-vfd.

Tested: jam
2009-01-10 16:13:48 -05:00
Mike McGreevy
9dc5ebd07b [svn-r16292] Purpose:
Bug Fix

Descriotion: 

    Removing problematic debugging code, and switching a leftover TRUE verbose
    statement to FALSE in cache_common.c

Tested:

    jam, liberty
2009-01-10 09:57:31 -05:00
Mike McGreevy
041e7dbfed [svn-r16290] Purpose:
Adding code to maintain a min_clean_fraction in the cache in serial mode.

Description:

    The metadata cache now has the ability to maintain a min_clean_fraction
    when in serial mode. The default initial cache size has been changed
    from 1MB to 2MB, and the default min_clean_fraction has been set at 30%.

    This check-in includes modifications to H5C.c to support maintaining a
    min_clean_size, including the addition of clean_index_size and 
    dirty_index_size trackers, modifications to the H5C_make_space_in_cache 
    algorithm, as well as associated test code and additional statistics 
    tracking variables.

    Maintaining the min_clean_fraction addresses the possibility of
    experiencing a "metadata blizzard" when the cache gets completely
    full with dirty entries. Upon having to make space, the cache would
    previously need to flush every single entry in the cache before coming
    across a clean entry which could be evicted. This resulted in unnecessary
    flushing of oftentimes hot entries in the cache. Maintaining the
    min_clean_fraction ensures that, when space is needed, clean entries
    are more readily available to evict.

Tested:

    jam, smirom, linew (h5committest)
2009-01-09 14:53:30 -05:00
Neil Fortner
307f67d525 [svn-r16289] Minor change to links.c to clear a warning.
Tested: jam
2009-01-09 11:01:38 -05:00
Neil Fortner
e3f39ba6de [svn-r16287] Fix one of the new tests in links.c. external_set_elink_cb no longer copies the
driver information from property list to property list.

Tested: jam
2009-01-09 10:49:10 -05:00
Pedro Vicente Nunes
3568733b13 [svn-r16284]
- h5repack: When user doesn't specify a chunk size, h5repack now defines a default 
            chunk size as the same size of the size of the hyperslab used to read the chunks. 
            The size of the hyperslabs are defined as the size of each dimension or a 
            predefined constant, whatever is smaller. This assures that the chunk 
            read fits in the chunk cache. (PVN - 2008/11/21)

  - H5Dset_extent: when shrinking dimensions, some chunks were not deleted.  
            (PVN - 2009/01/8)
2009-01-08 14:06:37 -05:00
Neil Fortner
d6da56adb7 [svn-r16281] Purpose: Add functions to allow more flexible traversal of external links.
Description: Added H5Pset/get_elink_cb to allow the user to specify a callback
function to be called whenever an external link is traversed.  Added
H5Pset/get_elink_acc_flags to allow the user to specify the file access flags
to use to open the target file of an external link.  All these properties are set on a LAPL.

Tested: jam, linew, smirom (h5committest)
2009-01-08 13:16:31 -05:00
Quincey Koziol
634c7c5a93 [svn-r16279] Description:
Bring revision 16278 back from revise_chunks branch:

	Update layout information in DCPL to unify all information in one
underlying property and switch to using H5O_layout_t for storing it, which
simplifies things considerably.

	Also, fix many compiler warnings.

Tested on:
	FreeBSD/32 6.3 (duty) in debug mode
	(Original patch tested on many machines)
2009-01-08 12:27:15 -05:00
Pedro Vicente Nunes
9b1f93283c [svn-r16273] Added a test for shrinking to 0 dimemsions
Tested: windows, linux
2009-01-08 09:50:01 -05:00
Albert Cheng
4695c4150d [svn-r16271] Bug fix.
The Tail command in jam (a newer linux) does not accept the +2l option.
It ended up wiping most of the release_doc/RELEASE.txt file contents.
Replaced the "tail +2l" by "sed -e 1d".

Tested:
Tested in Jam to verify it functions properly again.
2009-01-06 17:58:54 -05:00
Neil Fortner
29602ca94b [svn-r16266] Revert RELEASE.txt to the version before it was mostly deleted by hdftest.
Update version number listed at the top.

Tested: vim
2009-01-06 09:58:21 -05:00
Scot Breitenfeld
e99b7dec14 [svn-r16262] Description:
added missing reference in h5lget_name_by_idx_f:

!DEC$ATTRIBUTES reference ::

for character strings being passed in to C to fix bug in VMS.
2009-01-05 11:40:59 -05:00
Scot Breitenfeld
9a38a8965c [svn-r16235] Description:
Cosmetic changes, Also tested -r16231 on:

Jam (intel 10.1)
Smirom (intel 10.1)
2008-12-30 12:30:17 -05:00
Scot Breitenfeld
0e779a215c [svn-r16231] Description:
Added chunk property to the data set because changes in the cC function H5Dset_extent now require/check that the data set is chunked.
2008-12-30 11:27:29 -05:00
Pedro Vicente Nunes
dc869ba584 [svn-r16229] merge 16228
cleaned more linux warnings
tested: linux
2008-12-29 16:56:48 -05:00
Pedro Vicente Nunes
e1590a56b1 [svn-r16227] cleaned some linux warnings
tested: linux
2008-12-29 16:40:37 -05:00
Pedro Vicente Nunes
b962f97e1a [svn-r16225] removed some debug messages
tested: windows, linux
2008-12-29 16:24:09 -05:00
Pedro Vicente Nunes
75951cfcf8 [svn-r16223] Modified H5Dset_extent so that it fails when called for compact datasets and contiguous with no external storage
new test program: It adds tests for several ranks, use of fill value or not, compression, different fill value allocation times, use of different storage layouts, and external files

tested: windows, linux
2008-12-29 15:36:34 -05:00
HDF Tester
f9f462e720 [svn-r16220] Snapshot version 1.9 release 26 2008-12-28 05:28:04 -05:00
Pedro Vicente Nunes
5b7de16d6a [svn-r16217] Bug fix
PG compiler complains about array out of bounds (a rank of zero was not checked)
Adding a scalar dataset to the test generator program. this case is run on a previous existing run, the case was added to 2 existing files

Tested: windows, linux
2008-12-23 09:56:13 -05:00
Raymond Lu
1448a3e8bb [svn-r16214] Added HDlseek to the H5FD_core_truncate function in H5FDcore.c to rewind the file pointer
to the beginning of the file.  Otherwise, the file might be re-extended later on Open VMS.
Also updated the return value for the HDlseek to be more appropriate.

Tested 1.8 on Open VMS.
2008-12-22 14:05:43 -05:00
Choonghwan Lee
c302b9b031 [svn-r16209] Purpose:
Bug fix (#1357)

Description:
	Three filters have not assigned correct value to one value-result argument, "buf_size". N-bit, szip, and scale offset filter have had this problem.

	However, I don't think this problem has been making buffer overrun because those filters were informing the caller that the "buf", another value-result argument, is smaller than it actually is. If there was actual buffer overrun, I believe another problem exists although I don't know.

Tested:
	jam, smirom, linew

	Although all test were passed, I'm concerned about valgrind memcheck error. There can be another miscommunication between filter and the caller.
2008-12-19 11:22:10 -05:00
Allen Byrne
794c05c921 [svn-r16207] Added new file H5Bdbg.c to windows project file. Will test using VS2008 Express. 2008-12-18 09:37:32 -05:00
Quincey Koziol
e77303f483 [svn-r16204] Description:
Moved v1 B-tree debugging routines into separate module and thinned
out header files a bit.

Tested on:
        Mac OS X/32 10.5.5 (amazon) in debug mode
        Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe,
                                in production mode
        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/C++ & FORTRAN, w/threadsafe,
                                in debug mode
        Linux/64-amd64 2.6 (smirom) 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-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-12-18 08:43:21 -05:00
Raymond Lu
86fb2794d6 [svn-r16202] Added HDlseek in front of the truncate function in H5FD_sec2_truncate for VMS only.
On Open VMS, if the last read or write put the file pointer beyond the current file size
(it happens when an object is deleted), the file can be extended when it's truncated.

Tested v1.8 on VMS.
2008-12-15 16:17:38 -05:00
Scot Breitenfeld
67d0c24a41 [svn-r16196] Description:
added:

!DEC$ATTRIBUTES reference :: 

for character strings being passed in to C to fix bug in VMS.
2008-12-15 12:46:54 -05:00
Mike McGreevy
379b5a7b01 [svn-r16194] Purpose:
Bug Fix

Description:

    Resolved issues with broken sanity checks that were failing when the 'b2'
    debugging package was enabled (v2 b-tree debugging):

        - Fixed outdated assertions that would not compile. They now compile
          and function correctly.

        - Removed too far outdated assertions that would require too much 
          unnecessary refactoring of code in order to satisfy their
          initial purpose.

        - Re-enabled b2 debugging package when "--enable-debug=all" is
          specified on the configure line.

Tested:

    jam, smirom, linew
2008-12-15 12:39:20 -05:00
Allen Byrne
8b971620b4 [svn-r16189] Changed references of H5Distore to H5Dbtree in project files. (Related to revision 16180) 2008-12-12 10:52:02 -05:00
Quincey Koziol
58e4b0c979 [svn-r16187] Description:
Change a few more "istore" references in comments to "chunk" or "btree".

Tested on:
	None, just comments
2008-12-11 15:06:17 -05:00
Quincey Koziol
40dac44efe [svn-r16182] Description:
Rename internal routines, variables, macros, typedefs, etc. for chunked
dataset storage from "istore" to some variant of "chunk" or "btree".

Tested on:
        Mac OS X/32 10.5.5 (amazon) in debug mode
        Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe,
                                in production mode
        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/C++ & FORTRAN, w/threadsafe,
                                in debug mode
        Linux/64-amd64 2.6 (smirom) 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-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
        Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-12-11 14:29:44 -05:00
Quincey Koziol
09ef5a6ef9 [svn-r16180] Description:
Rename the current chunk indexing routines module for B-tree indices
to better reflect their purpose, and to make the upcoming extensible array
index module fit in better.

Tested:
	FreeBSD/32 6.3
	Too minor to require h5committest
2008-12-11 13:12:28 -05:00
Quincey Koziol
f53cd8e75d [svn-r16179] Description:
Use the H5F_KVALUE macro in a couple more places, to make the code
easier to read.

Tested on:
	Mac OS X only (very minor)
2008-12-11 10:39:42 -05:00
Neil Fortner
fcd5fc141f [svn-r16176] Remove terminal whitespace in links.c, H5Lexternal.c, H5Pfapl.c
Tested: jam
2008-12-09 14:53:01 -05:00
Albert Cheng
faea573564 [svn-r16173] Updated fix of the missing argument of open() in zip_perf.c. 2008-12-09 10:55:40 -05:00
Albert Cheng
0ac6d940c3 [svn-r16170] Code clean up.
Function get_unique_name() had potential string overflow problem.
Fixed. Also removed some unused macros.

Tested by h5committest.
2008-12-08 23:08:24 -05:00
Albert Cheng
064fee6e8e [svn-r16167] Bug fix: 1089
Description:
One open() call with O_CREAT flag did not have the third required argument.

Solution:
Added the right third argument. Also changed all open() calls to HDopen
macros for more portable coding.

Tested:
h5committested.
2008-12-08 21:28:05 -05:00
Frank Baker
58090002a8 [svn-r16166] Description:
Change all occurrences of 'THG' to 'The HDF Group'.
2008-12-08 16:43:21 -05:00
Scott Wegner
dbd3143ff5 [svn-r16161] Purpose: Add new source file to Windows
Description:
Recently the new source file H5EAdbkpage.c was added to the main library source code.  This checkin also adds it to the Windows project files.

Note: Windows builds are still failing on the earray test, although for other reasons.  I'm also looking into this.

Tested:
VS2005 on WinXP
2008-12-05 10:25:04 -05:00
Pedro Vicente Nunes
7b5df92ac8 [svn-r16158] Test the non deletion of a chunk for the case chunk_offset == dimension by shrinking first, then expanding to original size and compare buffers of initialized values
Tested: windows, linux
2008-12-03 22:47:40 -05:00
Pedro Vicente Nunes
2ef8c372c5 [svn-r16156] close & re-open the file for the test of non-default B-tree internal 'K' value (There was a bug where a non-default B-tree internal 'K' value was not being stored in the file)
this is a rewrite of the old set_extent.c test program
tested: windows, linux
2008-12-03 21:25:21 -05:00
Pedro Vicente Nunes
0e3797d58a [svn-r16152] added comments and removed unnecessary code
tested: windows, linux
2008-12-02 15:52:58 -05:00
Neil Fortner
0f0464f747 [svn-r16150] Change a call to H5FL_fac_free to H5FL_FAC_FREE so it works correctly when free
lists are disabled.

Tested: jam
2008-12-02 15:47:52 -05:00
Pedro Vicente Nunes
7c4b4e32d0 [svn-r16148] reorganized the set_extent test to be more modular
tested: windows, linux
2008-12-02 14:37:46 -05:00
Pedro Vicente Nunes
629cc339eb [svn-r16144] Removed the check of H5Dset_extent for the space to be chunked, since external datasets can be extended
Tested: windows, linux
2008-12-01 15:38:02 -05:00
Pedro Vicente Nunes
4c221f9e0e [svn-r16143] add a test for recent fixes of H5Dset_extent
tested: windows, linux
2008-12-01 15:20:46 -05:00
Pedro Vicente Nunes
e004bd48f2 [svn-r16142] Added a check to H5Dset_extent for the space to be chunked, exit with error otherwise
A call to H5Dset_extent in the external test was removed

Tested: windows, linux
2008-12-01 13:46:07 -05:00
HDF Tester
150d4cf4bb [svn-r16138] Snapshot version 1.9 release 25 2008-11-30 07:38:02 -05:00
Quincey Koziol
e8e2f47703 [svn-r16137] Description:
Add support for paging large data blocks to extensible arrays

	Clean up allocation/destroy code for extensible array index, super and
data blocks

	Add a couple of routines to set/get bit values in memory buffers

Tested on:
        Mac OS X/32 10.5.5 (amazon) in debug mode
        Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe,
                                in production mode
        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/C++ & FORTRAN, w/threadsafe,
                                in debug mode
        Linux/64-amd64 2.6 (smirom) 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-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
        Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-11-28 14:16:24 -05:00
Pedro Vicente Nunes
bd3e89868a [svn-r16133] H5TBdelete_record was not handlong correctly records at the end of the table
added a ckeck that avoids to read these records if they are not needed (for pushing down the table)

tested: windows, linux
2008-11-25 14:42:49 -05:00
Pedro Vicente Nunes
7653aa4a6a [svn-r16132] some chunks were not deleted for some cases, the comparison to check for chunk offsets outside of the new dimensions was
chunk_offset[ i ] > dimension [ i ]
and it must be
chunk_offset[ i ] >= dimension [ i ]

tested: windows, linux
2008-11-25 11:31:16 -05:00