summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-07-16 14:57:13 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-07-16 14:57:13 (GMT)
commit06b7c1a3262ba321cf34142c276ff8cb9236dfa8 (patch)
treebd94b20d77a3c85f51baddf5a932d83b08f2ec68 /src/H5private.h
parentc74382063aaae13d7ee9c4d86202d5b9a3ab65f2 (diff)
downloadhdf5-06b7c1a3262ba321cf34142c276ff8cb9236dfa8.zip
hdf5-06b7c1a3262ba321cf34142c276ff8cb9236dfa8.tar.gz
hdf5-06b7c1a3262ba321cf34142c276ff8cb9236dfa8.tar.bz2
[svn-r7234] Purpose:
Bug fix Description: When a non-default indexed storage B-tree internal 'K' value is set by the user, the chunked datasets created in that file (until it is closed) use the user's 'K' value and the data can be accessed correctly, but the 'K' value is not stored in the file. However, once the file is closed and re-opened, the non-default 'K' value is lost and the data in the chunked datasets will not be able to be accessed correctly. Solution: Store the indexed storage B-tree internal 'K' value in the superblock. Platforms tested: FreeBSD 4.8 (sleipnir) h5committest
Diffstat (limited to 'src/H5private.h')
-rw-r--r--src/H5private.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/H5private.h b/src/H5private.h
index dacefd8..b72df0a 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -219,12 +219,22 @@
#endif
/* Version #'s of the major components of the file format */
-#define HDF5_BOOTBLOCK_VERSION 0 /* of the boot block format */
+#define HDF5_SUPERBLOCK_VERSION_DEF 0 /* The default super block format */
+#define HDF5_SUPERBLOCK_VERSION_MAX 1 /* The maximum super block format */
#define HDF5_FREESPACE_VERSION 0 /* of the Free-Space Info */
#define HDF5_OBJECTDIR_VERSION 0 /* of the Object Directory format */
#define HDF5_SHAREDHEADER_VERSION 0 /* of the Shared-Header Info */
#define HDF5_DRIVERINFO_VERSION 0 /* of the Driver Information Block*/
+/* B-tree internal 'K' values */
+#define HDF5_BTREE_SNODE_IK_DEF 16
+#define HDF5_BTREE_ISTORE_IK_DEF 32 /* Note! this value is assumed
+ to be 32 for older versions
+ of the superblock (<1) and
+ if it is changed, the code
+ must compensate. -QAK
+ */
+
/*
* Status return values for the `herr_t' type.
* Since some unix/c routines use 0 and -1 (or more precisely, non-negative