Commit Graph

3340 Commits

Author SHA1 Message Date
James Laird
4cf99e9f28 [svn-r11013] Purpose:
Bug fix

Description:
Fixed bugs that caused tests to be unable to find testhdf5.sh during
daily tests, and another that broke sol and shanti.

Solution:
When tests are run, their path is ./$testname .
When scripts are run, their path has no leading "./".  Fixed.
Sol and shanti don't recognize the -e option for test, but they do know
-f.  Fixed.
Also modified release notes.

Platforms tested:
mir, shanti, heping
2005-07-01 16:22:05 -05:00
Quincey Koziol
5e98cfee43 [svn-r11009] Purpose:
Bug fix

Description:
    When a series of files is mounted on one another and one of those files
is not unmounted, the library gets confused at shutdown and goes into an
infinite loop in the file interface.

Solution:
    If there are still files left in the "closing" state when shutting down
the file API, iterate over those file IDs and unmount any child files that we
find mounted on those files.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-07-01 00:35:29 -05:00
James Laird
43f091f462 [svn-r11008] Purpose:
Feature: tests now use parallel make and only run once

Description:
When make is invoked in parallel (using the -j option), several tests will
now be run simultaneously.  This should speed up testing on a number of
systems.
When a test passes, it creates a foo.chkexe or foo.chksh file, which prevents
the test from running again unless the test or library changes.

Solution:
Most of the changes live in config/conclude.am.  Added *.chkexe and *.chksh
files to the list of files to be cleaned at "make mostlyclean" time.
Parallel tests still run one at a time, but use the same make instructions
as serial tests.

Platforms tested:
mir, eirene, sleipnir, pommier, copper, modi4 (some errors occurred, probably
due to the test being run before updating hdf5.  Will re-run tests after
checkin.)
2005-06-30 18:35:32 -05:00
Raymond Lu
ff66fc2ef3 [svn-r11001] Purpose: Add more comment. 2005-06-29 11:06:35 -05:00
Raymond Lu
7b193be887 [svn-r10998] Purpose: Bug fix.
Description:
For the definition of the macro H5T_CONV_Xx_CORE, added a condition branch
(else if (*((ST*)S) == (DT)(D_MAX))) which seems redundant.
It handles a special situation when the source is "float" and assigned the value
of "INT_MAX".  A compiler may do roundup making this value "INT_MAX+1".  However,
when do comparison "if (*((ST*)S) > (DT)(D_MAX))", the compiler may consider them
equal.


Platforms tested: fuss - simple change.
2005-06-29 11:01:09 -05:00
John Mainzer
7f8e346026 [svn-r10978] Purpose:
Interim checkin of code changes moving management of the is_dirty flag
into the cache code.


Description:

   Prior to this checkin, management of the is_dirty flag was handled
above the level of the metadata cache.  This can no longer be allowed,
as it introduces a race condition in the proposed fix for a cache
coherency bug in PHDF5.


Solution:

   Move management fo the is_dirty flag to the cache code proper.
Entries are now marked as dirty via a flag on the unprotect call.


Platforms tested:

h5committested


Misc. update:
2005-06-24 01:30:29 -05:00
Raymond Lu
071be8ef3b [svn-r10971] Purpose: Bug fix
Description: See details from Bug #213.  Family member file size wasn't saved
anywhere in file.  When family file is opened, the first member size determine
the member size.

Solution:  Hopefully, this is the last step of checkin for this stage.  This step
mainly enables h5repart tool to be able to convert file driver from family to
sec2.  Because the library saves family information in file, in trying to convert
to sec2 driver, the library simply change the address of driver information to
undefined so that the driver information block can be ignored.  This step also
updates the reference manual of H5Pset_fapl_family() and h5repart.

In the fifth step of checkin, backward compatibility with v1.6
is tested.  A family file created was created with the v1.6 library and opened
with this version of the library.

In the fourth step of checkin, a test suit is added for h5repart,
including a program to generate the test files, a script file to run h5repart,
and a program to verify repartitioned files can be opened by the library.

There's a change from the first step of checkin.  Family name template is no
longer saved in the superblock because different pathname can make the name
different.

In the third step of checkin, h5repart has been modified.  If h5repart is used
to change the size of family member file, the new size(actual member size) is saved
in the superblock.

In the second step of checkin, multi driver is checked against the driver
name saved in superblock.  Wrong driver will result in a failure with an error message
indicating
multi driver should be used.  This change includes split driver because it's a special
case for multi
driver.

In the first step of checkin.  Family member size and name template(unused at this stage) are saved
in file superblock.  When file is reopened,the size passed in thrin superblock.  A different size
will trigger a failure with an error message indicating the right size.  Wrong driver to open family
file will cause a failure, too.


Platforms tested: h5committest and fuss.

Misc. update: doc/html/RM_H5P.html and doc/html/Tools.html
2005-06-22 13:59:48 -05:00
Quincey Koziol
3941fd5383 [svn-r10959] Purpose:
Bug fix

Description:
    Don't perform hyperslab operations on non-hyperslab selections.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-06-20 13:56:03 -05:00
Quincey Koziol
1f35ebc88b [svn-r10958] Purpose:
New feature

Description:
    Add group creation & access property lists, dataset access property lists
and named datatype creation & access property lists.  Currently have
<foo>_extend() API names, which will need to be changed for the final release.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Linux 2.4 (heping)
2005-06-20 13:11:57 -05:00
Quincey Koziol
d641030436 [svn-r10951] Purpose:
Bug fix

Description:
    Hyperslab selections that had a selection offset and were applied to a
chunked dataset could get into an infinite loop or core dump if the same
selection was used multiple times, with different selection offsets.

Solution:
    "Normalize" the selection with the selection offset, generate the
selections for the chunks overlapped and then "denormalize" the selection.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-06-18 00:10:22 -05:00
Quincey Koziol
04e424638a [svn-r10949] Purpose:
Bug fix

Description:
    George Lewandowski @ Boeing tracked down a memory leak and possible
corruption in the code for opening a group.

Solution:
    Change code to allocate correct structure.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-06-17 21:53:53 -05:00
Quincey Koziol
7e7dd03a32 [svn-r10920] Purpose:
Bug fix

Description:
    Add check for opaque tags that are too long for file format to handle
currently.


Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5commmitest
2005-06-14 16:18:32 -05:00
Raymond Lu
162b19cd6c [svn-r10919] Purpose: Take Out An Unused Function
Description: Data conversion function H5T_conv_i32le_f64le() was unused.
Because we have new conversion functions for integers and floating numbers,
this old function is taken out.


Platforms tested: fuss - simple change.

Misc. update:
2005-06-14 15:37:04 -05:00
Raymond Lu
3344dd72ed [svn-r10918] Purpose: Bug fix
Description: Fix the codes of last checkin(Bug #341).  Some failures happened
in daily test from last checkin.  Try to fix them in this checkin.


Platforms tested: modi4, mir, and tg-login2.
2005-06-14 14:16:07 -05:00
Raymond Lu
1d6d996286 [svn-r10917] Purpose: Bug fix
Description: Fix the codes of last checkin(Bug #341).  Some failures happened
in daily test from last checkin.  Try to fix them in this checkin.


Platforms tested: modi4, mir, and tg-login2.
2005-06-14 13:22:19 -05:00
Raymond Lu
ccc9a37b52 [svn-r10916] Purpose: Bug fix
Description: The hard conversion functions of "long double" and other floating
point types were left out for registration somehow.

Solution:  Added them in.

Platforms tested: h5committest and fuss.
2005-06-13 16:35:38 -05:00
Raymond Lu
cf83fb0612 [svn-r10913] Purpose: Work Around A Compiler Bug
Description: PGCC compiler on mir(AMD Opeteron) has a bug for optimization,
causing the multi driver test to fail.  The compiler handles a macro in this
file incorrectly.

Solution: Slightly change the definition of this macro to avoid the problem
temporarily.

Platforms tested: h5committest, optimization and debug on mir.
2005-06-13 11:32:25 -05:00
Raymond Lu
24ccb5da13 [svn-r10881] Purpose: Bug fix
Description: After recent fix of family driver bug(#213), some failure
was discovered on sol and kelgia in daily test.  Family files can't be
opened by hdf5/tools/misc/repart_test.c.  It turned out to be the
destination size of "off_t" type wasn't passed in through H5Pset()
correctly.

Solution: In tools/misc/h5repart.c, copy the destination size to a
variable of "hsize_t" type and pass in to H5Pset().

Platforms tested: sol and kelgia where the failure was discovered.
2005-06-08 15:50:58 -05:00
Quincey Koziol
54188b4abb [svn-r10875] Purpose:
Bug fix

Description:
    Fix several NULL pointer dereferences when tracking the name of open
objects during some unusual sequences of mount & unmount operations.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-06-08 00:22:28 -05:00
Albert Cheng
65107926e1 [svn-r10858] Purpose:
bug fix.

Description:
The check-s and check-p targets are not recursively passes down.
Make them so.

Platforms tested:
heping (serial and pp).
2005-06-04 00:01:12 -05:00
Quincey Koziol
b685986777 [svn-r10857] Purpose:
Code cleanup

Description:
    Re-enable free-list management in the library

Platforms tested:
    None - eyeballed - too minor to require h5committest
2005-06-03 15:55:21 -05:00
Albert Cheng
a2217d58c8 [svn-r10849] Purpose:
bug fix

Description:
check-s and check-p were set as pre-requistics of test.  They
would get executed in parallel if parallel make is used.  This
could cause problems since serial tests are used to be executed
before parallel tests. It is not known if it is always okay to
run serial and parallel tests in simultantously.

Solution:
Change check-s and check-p as actions of the target test so
that they get executed sequnentially.

Platforms tested:
heping PP.
2005-06-02 18:42:48 -05:00
Raymond Lu
7696942940 [svn-r10847] Purpose: Bug fix
Description: See details from Bug #213.  Family member file size wasn't saved
anywhere in file.  When family file is opened, the first member size determine
the member size.

Solution: This is the fourth step of checkin.  A test suit is added for h5repart,
including a program to generate the test files, a script file to run h5repart,
and a program to verify repartitioned files can be opened by the library.

There's a change from the first step of checkin.  Family name template is no
longer saved in the superblock because different pathname can make the name
different.

In the third step of checkin, h5repart has been modified.  If h5repart is used
to change the size of family member file, the new size(actual member size) is saved
in the superblock.

In the second step of checkin, multi driver is checked against the driver
name saved in superblock.  Wrong driver will result in a failure with an error message indicating
multi driver should be used.  This change includes split driver because it's a special case for multi
driver.

In the first step of checkin.  Family member size and name template(unused at this stage) are saved
in file superblock.  When file is reopened,the size passed in thrin superblock.  A different size
will trigger a failure with an error message indicating the right size.  Wrong driver to open family
file will cause a failure, too.


Platforms tested: h5committest and fuss.

Misc. update:  MANIFEST
2005-06-02 16:00:23 -05:00
Quincey Koziol
62af6baea1 [svn-r10844] Purpose:
Code cleanup

Description:
    Simplify the "zero-sized hyperslab" handling.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest

Misc. update:
2005-06-02 11:02:02 -05:00
Quincey Koziol
588c85ee02 [svn-r10842] Purpose:
Code cleanup

Description:
    A few more cosmetic changes

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-06-01 21:52:49 -05:00
Quincey Koziol
063642da28 [svn-r10841] Purpose:
Code cleanup

Description:
    Merge in some mostly cosmetic improvements to the H5F routines.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-06-01 21:37:52 -05:00
James Laird
2423bd6cab [svn-r10840] Purpose:
Added check-s and check-p targets.

Description:
Added check-s and check-p targets to 1.7 branch to match changes to 1.6
branch.  Now parallel and serial tests can be run separately.

Platforms tested:
mir, modi4, copper
2005-06-01 20:51:52 -05:00
Quincey Koziol
45bbf45250 [svn-r10837] Purpose:
Bug fix/new feature

Description:
    Setting "SEMI" or "STRONG" file close degrees causes problems when multiple
file IDs exist for the same file on disk.

Solution:
    Make the "SEMI" and "STRONG" settings only apply to the file ID that is
being closed.

    Also, add an "H5F_OBJ_LOCAL" flag for the H5Fget_obj_count() &
H5Fget_obj_ids() calls, so that applications can query about objects opened
with a particular file ID instead of all the objects opened in the file on
disk.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    h5committest
2005-06-01 16:20:10 -05:00
Quincey Koziol
78bcbe927f [svn-r10832] Purpose:
Bug fix

Description:
    Fix problems with hyperslab operations with hyperslabs that have count == 0
or block == 0 values. (bugzilla #294)

Solution:
    Detect zero sized selections and translate into appropriate action on the
current hyperslab, rather than go through the formality of generating span
trees with zero-sized spans, etc.

Platforms tested:
    FreeBSD 4.11 (sleipnir) w/parallel
    Too minor to require h5committest
2005-05-31 16:20:36 -05:00
Raymond Lu
38b33b8330 [svn-r10795] Purpose: Bug fix
Description: See details from Bug #213.  Family member file size wasn't saved
anywhere in file.  When family file is opened, the first member size determine
the member size.

Solution:  This is the third step of checkin.  h5repart has been modified.  If h5repart is used
to change the size of family member file, the new size(actual member size) is saved in the superblock.

In the second step of checkin, multi driver is checked against the driver
name saved in superblock.  Wrong driver will result in a failure with an error message indicating
multi driver should be used.  This change includes split driver because it's a special case for multi
driver.

In the first step of checkin.  Family member size and name template(unused at this stage) are saved
in file superblock.  When file is reopened,the size passed in thrin superblock.  A different size
will trigger a failure with an error message indicating the right size.  Wrong driver to open family
file will cause a failure, too.

Platforms tested: h5committest and fuss

Misc. update:  RELEASE.txt
2005-05-24 16:00:16 -05:00
James Laird
985af5617f [svn-r10785] Purpose:
Feature

Description:
Added "support" for UTF-8 character encoding.

Solution:
Wrote tests to check that UTF-8 can be used in a number of places in
HDF5 (object names, data, etc.).  These tests live in test/tunicode.c.
Added a new UTF-8 character encoding for datatypes.

Platforms tested:
mir, modi4, heping

Misc. update:
2005-05-23 13:20:07 -05:00
Raymond Lu
02ca812786 [svn-r10778] Purpose: Bug fix
Description:
Description: See details from Bug #213.  Family member file size wasn't saved
anywhere in file.  When family file is opened, the first member size determine
the member size.

Solution:  This is the second step of fixing this bug.  Multi driver is checked against the driver
name saved in superblock.  Wrong driver will result in a failure with an error message indicating
multi driver should be used.  This change includes split driver because it's a special case for multi
driver.

In the first step of checkin.  Family member size and name template(unused at this stage) are saved
in file superblock.  When file is reopened,the size passed in thrin superblock.  A different size
will trigger a failure with an error message indicating the right size.  Wrong driver to open family
file will cause a failure, too.

The third step will be changing h5repart to let it change family member size in the superblock if
user uses it to change member file size.

Platforms tested: h5committest and fuss.
2005-05-20 16:50:20 -05:00
Raymond Lu
9cf358dbb8 [svn-r10776] Purpose: Bug fix
Description: See details from Bug #213.  Family member file size wasn't saved
anywhere in file.  When family file is opened, the first member size determine
the member size.

Solution:  This is the first step of fixing this bug.  Member size and name
template(unused at this stage) are saved in file superblock.  When file is reopened,
the size passed in through H5Pset_fapl_family is checked against the size saved
in superblock.  A different size will trigger a failure with an error message
indicating the right size.  Wrong driver to open family file will cause a failure,
too.

The second step will change multi driver that wrong driver will cause a failure.

Platforms tested: fuss and h5committest
2005-05-20 13:24:26 -05:00
James Laird
984f44479c [svn-r10773] Purpose:
Output tweak

Description:
In configure.in, users must link to zlib library, but configure then
informs them that "deflate" filter is enabled.  Changed output slightly
to indicate that these are the same filter.


Platforms tested:
mir (very minor change)
2005-05-20 12:32:49 -05:00
Quincey Koziol
9b4c1ce9f6 [svn-r10750] Purpose:
New feature.

Description:
    Add "memory pool" internal data structure.  This set of routines is
designed to add a way to allocate small pieces of information for a particular
purpose and then free all the pieces at once (i.e. without having to free each
piece individually).  Memory pools are also good for localizing lots of small
allocations that logically belong together.

    For example, if you were constructing a temporary linked list, you could
create a new memory pool, allocate all the nodes for the list from the memory
pool and when you were done with the list, just destroy the pool instead of
tracking through the list and freeing each block independently.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    h5committest
2005-05-17 14:01:07 -05:00
Quincey Koziol
2afe0fcda1 [svn-r10749] Purpose:
Code cleanup

Description:
    Convert H5Eget_num from 'size_t' to 'ssize_t' to allow for correct error
reporting (eventually).

    Also, convert a bunch of static routines from "FUNC_ENTER_NOAPI" to
"FUNC_ENTER_NOAPI_NOINIT" or "FUNC_ENTER_NOAPI_NOINIT_NOFUNC"

Platforms tested:
    FreeBSD 4.11 (sleipnir) w/pthreads
    Too minor to require h5committest
2005-05-17 11:10:53 -05:00
Raymond Lu
4977e0ac51 [svn-r10746] Purpose: Minor correction
Description:  H5Eget_num used to return an INT type.  That's not consistent with
the parameter of H5Epop.

Solution: Changed it to SIZE_T type.

Platforms tested: fuss -  very simple change.
2005-05-16 10:54:10 -05:00
HDF Admin
a4345b9917 [svn-r10744] Snapshot version 1.7 release 47 2005-05-15 04:34:14 -05:00
MuQun Yang
fec2c355da [svn-r10742] Purpose:
A little enhancement for integer datatype filter

Description:
Minimum-bit of the scaleoffset filter should not be less than 0,
However, if the user accidently input a negative value for integer type,
we will reset it to zero.

Solution:

Platforms tested:
too minor to test.

Misc. update:
2005-05-10 11:12:15 -05:00
MuQun Yang
b6f01bff10 [svn-r10741] Purpose:
Minor change for rounding of floating-point value for scaleoffset filter.

Description:
Always round to the bigger absolute integer value if floating-point data is in the middle.
0.5->1, -0.5->-1.

Solution:

Platforms tested:
Too minor to test

Misc. update:
2005-05-09 18:30:56 -05:00
Quincey Koziol
3d4049134e [svn-r10740] Purpose:
Bug fix

Description:
    Add missing #ifdef's to recent code cleanup that fix daily test failures.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-05-09 15:24:36 -05:00
Quincey Koziol
bbe03d7361 [svn-r10736] Purpose:
Code cleanup

Description:
    Clean up some compiler warnings

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    h5committest
2005-05-07 14:37:48 -05:00
Quincey Koziol
c952661afb [svn-r10734] Purpose:
Bug fix

Description:
    Fix several problems with mounting files on an entry in a group when the
file the group is in has been closed.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    h5committest
2005-05-07 14:34:25 -05:00
MuQun Yang
314bfe6f3c [svn-r10733] Purpose:
Update H5Zscaleoffset.c so that it supports negative precision number.

Description:

Solution:

Platforms tested:
Linux 2.4

Misc. update:
too minor to check in other platforms
2005-05-06 14:19:34 -05:00
Raymond Lu
a867893cdc [svn-r10731] Purpose: Bug fix
Description:  A user reported conversion of floating-point numbers returned some wrong value.  It turned
out a variable in H5T_conv_f_f() wasn't reset after being used for each element.  See bug #356 for details.

Solution:  Simple reset it.

Platforms tested:  fuss; also tested with the program user provided. Very simple change.
2005-05-05 14:31:54 -05:00
James Laird
b0e5134171 [svn-r10730] Purpose:
Portability feature

Description:
The random() and srandom() functions are not available on all machines.
Set up the configure script to automatically detect them, rather than
requiring their presence or absence to be hardcoded.

Solution:
Added AC_CHECK_FUNCS macro to configure.in and replaced
#ifdef WIN32 conditionals with #ifdef H5_HAVE_RANDOM conditionals.

Platforms tested:
sleipnir, Windows
2005-05-05 12:38:59 -05:00
Quincey Koziol
149e6b77b8 [svn-r10718] Purpose:
Code cleanup

Description:
    Clean up some compiler warnings.

Platforms tested:
    FreeBSD 4.11 (sleipnir) w/gcc 4.0
    Too minor to require h5committest
2005-05-03 10:39:33 -05:00
John Mainzer
724cbc5615 [svn-r10717] Purpose:
Remove C99 types from new metadata cache related API calls
(take 2 -- missed one in the previous check in)


Description:

Windows (and perhaps others) don't like int32_t and int64_t.  While
we have dealt with the issue internally, it is more of a problem
in API calls.


Solution:

Convert int32_t to int and int64_t to long int in the new metadata
cache related API calls.


Platforms tested:

heping


Misc. update:
2005-05-02 16:36:43 -05:00
Quincey Koziol
f6fd474fe4 [svn-r10716] Purpose:
Code cleanup

Description:
    Migrate MPE macros to H5private.h, in preparation for using the
H5MPprivate.h file for "memory pool" API.

Platforms tested:
    FreeBSD 4.11 (sleipnir) w/parallel
    Too minor to require h5committest
2005-05-02 14:54:19 -05:00
John Mainzer
cc44e6af63 [svn-r10715] Purpose:
Remove C99 types from new metadata cache related API calls


Description:

Windows (and perhaps others) don't like int32_t and int64_t.  While
we have dealt with the issue internally, it is more of a problem
in API calls.


Solution:

Convert int32_t to int and int64_t to long int in the
H5AC_cache_config_t structure used by the new metadata cache
related API calls.  Added explicit type casts to convert
between internal and external representations.


Platforms tested:

h5committested


Misc. update:
2005-05-02 13:58:28 -05:00