diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2008-11-18 00:05:45 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2008-11-18 00:05:45 (GMT) |
commit | a28e8407cf5a526a20ad682382f0faed58aace76 (patch) | |
tree | be0dc3b77a701265e64d7914bd480f7f797cde86 /src/H5EAhdr.c | |
parent | 4a219c18b65436d9abce2b6554e0dc153745b3b5 (diff) | |
download | hdf5-a28e8407cf5a526a20ad682382f0faed58aace76.zip hdf5-a28e8407cf5a526a20ad682382f0faed58aace76.tar.gz hdf5-a28e8407cf5a526a20ad682382f0faed58aace76.tar.bz2 |
[svn-r16093] Description:
Initial changes to allow data blocks to be paged in, instead of loaded
completely.
Also, refactored test code to be smaller and more maintainable.
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
Diffstat (limited to 'src/H5EAhdr.c')
-rw-r--r-- | src/H5EAhdr.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/H5EAhdr.c b/src/H5EAhdr.c index 3e98263..e0e97e8 100644 --- a/src/H5EAhdr.c +++ b/src/H5EAhdr.c @@ -374,15 +374,17 @@ HDfprintf(stderr, "%s: Called\n", FUNC); if(cparam->raw_elmt_size == 0) H5E_THROW(H5E_BADVALUE, "element size must be greater than zero") if(cparam->max_nelmts_bits == 0) - H5E_THROW(H5E_BADVALUE, "max. # of nelmts bitsmust be greater than zero") + H5E_THROW(H5E_BADVALUE, "max. # of elements bits must be greater than zero") if(cparam->max_nelmts_bits > H5EA_MAX_NELMTS_IDX_MAX) - H5E_THROW(H5E_BADVALUE, "element size must be <= %u", (unsigned)H5EA_MAX_NELMTS_IDX_MAX) + H5E_THROW(H5E_BADVALUE, "max. # of elements bits must be <= %u", (unsigned)H5EA_MAX_NELMTS_IDX_MAX) if(cparam->sup_blk_min_data_ptrs < 2) H5E_THROW(H5E_BADVALUE, "min # of data block pointers in super block must be >= two") if(!POWER_OF_TWO(cparam->sup_blk_min_data_ptrs)) - H5E_THROW(H5E_BADVALUE, "min # of data block pointers in super block not power of two") + H5E_THROW(H5E_BADVALUE, "min # of data block pointers in super block must be power of two") if(!POWER_OF_TWO(cparam->data_blk_min_elmts)) - H5E_THROW(H5E_BADVALUE, "min # of elements per data block not power of two") + H5E_THROW(H5E_BADVALUE, "min # of elements per data block must be power of two") + if(cparam->max_dblk_page_nelmts_bits > cparam->max_nelmts_bits) + H5E_THROW(H5E_BADVALUE, "max. # of elements per data block page bits must be <= max. # of elements bits") #endif /* NDEBUG */ /* Allocate space for the shared information */ |