summaryrefslogtreecommitdiffstats
path: root/src/H5Opkg.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-03-04 04:28:09 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-03-04 04:28:09 (GMT)
commit44f312b183305cf37295595bfd3f5df40fc637be (patch)
tree4d2fe91e2e756fc157d99047a10ea2ce2e755b2f /src/H5Opkg.h
parentcaa6d5dabc47494efd9930c2c1f043e357347328 (diff)
downloadhdf5-44f312b183305cf37295595bfd3f5df40fc637be.zip
hdf5-44f312b183305cf37295595bfd3f5df40fc637be.tar.gz
hdf5-44f312b183305cf37295595bfd3f5df40fc637be.tar.bz2
[svn-r13449] Description:
Add object creation property (H5P[s|g]et_obj_track_times) to disable storing timestamps on objects, which makes the object's header size smaller. Also, added object header status flags to H5O_info_t struct (for H5Oget_info/H5Oget_info_by_idx) and cleaned up other field names in the struct as well. Tested on: FreeBSD/32 6.2 (duty) Mac OS X/32 10.4.8 (amazon)
Diffstat (limited to 'src/H5Opkg.h')
-rw-r--r--src/H5Opkg.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/H5Opkg.h b/src/H5Opkg.h
index 6ed310e..6825210 100644
--- a/src/H5Opkg.h
+++ b/src/H5Opkg.h
@@ -40,7 +40,7 @@
#define H5O_VERSION_1 1
/* Revised version - leaves out reserved bytes and alignment padding, and adds
- * magic number as prefix and checksum
+ * magic number as prefix and checksum as suffix for all chunks.
*/
#define H5O_VERSION_2 2
@@ -78,6 +78,9 @@
/* Size of checksum (on disk) */
#define H5O_SIZEOF_CHKSUM 4
+/* Default value for object header status flags */
+#define H5O_CRT_OHDR_FLAGS_DEF H5O_HDR_STORE_TIMES
+
/*
* Size of object header prefix.
*/
@@ -95,10 +98,12 @@
1 + /*flags */ \
2 + /*number of messages */ \
4 + /*reference count */ \
- 4 + /*access time */ \
- 4 + /*modification time */ \
- 4 + /*change time */ \
- 4 + /*birth time */ \
+ (((O)->flags & H5O_HDR_STORE_TIMES) ? ( \
+ 4 + /*access time */ \
+ 4 + /*modification time */ \
+ 4 + /*change time */ \
+ 4 /*birth time */ \
+ ) : 0) + \
2 + /*max compact attributes */ \
2 + /*min dense attributes */ \
(O)->sizeof_size + /*# of attributes */ \
@@ -231,9 +236,9 @@ struct H5O_t {
size_t sizeof_addr; /* Size of file addresses */
/* Object information (stored) */
- unsigned version; /*version number */
unsigned nlink; /*link count */
- unsigned flags; /*flags */
+ uint8_t version; /*version number */
+ uint8_t flags; /*flags */
/* Time information (stored, for versions > 1) */
time_t atime; /*access time */