diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-03-06 18:54:24 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-03-06 18:54:24 (GMT) |
commit | 492df7a33ca592cfd24a4ec31cda12b887df3241 (patch) | |
tree | 23fe295d0ed1a9141e591e18d04ee0b3ccb246cc /src/H5Opkg.h | |
parent | f25328a15af33de7f804728776ec407ca4393b25 (diff) | |
download | hdf5-492df7a33ca592cfd24a4ec31cda12b887df3241.zip hdf5-492df7a33ca592cfd24a4ec31cda12b887df3241.tar.gz hdf5-492df7a33ca592cfd24a4ec31cda12b887df3241.tar.bz2 |
[svn-r13470] Description:
Avoid storing the phase change values for attribute storage, unless
they are non-default values.
Tested on:
Mac OS X/32 10.4.8 (amazon)
Diffstat (limited to 'src/H5Opkg.h')
-rw-r--r-- | src/H5Opkg.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/H5Opkg.h b/src/H5Opkg.h index d8a6fd2..e3626fe 100644 --- a/src/H5Opkg.h +++ b/src/H5Opkg.h @@ -78,7 +78,15 @@ /* Size of checksum (on disk) */ #define H5O_SIZEOF_CHKSUM 4 -/* Default value for object header status flags */ +/* ========= Object Creation properties ============ */ +/* Default values for some of the object creation properties */ +/* NOTE: The H5O_CRT_ATTR_MAX_COMPACT_DEF & H5O_CRT_ATTR_MIN_DENSE_DEF values + * are "built into" the file format, make certain existing files with + * default attribute phase change storage are handled correctly if they + * are changed. + */ +#define H5O_CRT_ATTR_MAX_COMPACT_DEF 8 +#define H5O_CRT_ATTR_MIN_DENSE_DEF 6 #define H5O_CRT_OHDR_FLAGS_DEF H5O_HDR_STORE_TIMES /* @@ -104,8 +112,10 @@ 4 + /*change time */ \ 4 /*birth time */ \ ) : 0) + \ - 2 + /*max compact attributes */ \ - 2 + /*min dense attributes */ \ + (((O)->flags & H5O_HDR_ATTR_STORE_PHASE_CHANGE) ? ( \ + 2 + /*max compact attributes */ \ + 2 /*min dense attributes */ \ + ) : 0) + \ (O)->sizeof_size + /*# of attributes */ \ (O)->sizeof_addr + /*addr of attribute heap */ \ (O)->sizeof_addr + /*addr of attribute name index */ \ |