diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2009-01-27 14:00:07 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2009-01-27 14:00:07 (GMT) |
commit | 5cd054dd5c1270a4f6e344ffdb99e8e6e4e1eb71 (patch) | |
tree | 8087d74d2e1862e4127bd92cf66ee543d0807b90 /src/H5Oprivate.h | |
parent | 85a1c5c27377a12f1b7dca29ad90b7484d7fcfed (diff) | |
download | hdf5-5cd054dd5c1270a4f6e344ffdb99e8e6e4e1eb71.zip hdf5-5cd054dd5c1270a4f6e344ffdb99e8e6e4e1eb71.tar.gz hdf5-5cd054dd5c1270a4f6e344ffdb99e8e6e4e1eb71.tar.bz2 |
[svn-r16354] Description:
Bring r16353 back from revise_chunks branch:
Refactor internal layout information, making it easier to add another
type of chunk index.
Tested on:
FreeBSD/32 6.3 (duty)
(other platforms tested with original patch)
Diffstat (limited to 'src/H5Oprivate.h')
-rw-r--r-- | src/H5Oprivate.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/H5Oprivate.h b/src/H5Oprivate.h index 3ef3fc3..cc88bdc 100644 --- a/src/H5Oprivate.h +++ b/src/H5Oprivate.h @@ -356,13 +356,20 @@ typedef struct H5O_layout_contig_t { hsize_t size; /* Size of data in bytes */ } H5O_layout_contig_t; -typedef struct H5O_layout_chunk_t { +typedef struct H5O_layout_chunk_btree_t { haddr_t addr; /* File address of B-tree */ + H5RC_t *shared; /* Ref-counted shared info for B-tree nodes */ +} H5O_layout_chunk_btree_t; + +typedef struct H5O_layout_chunk_t { + H5D_chunk_index_t idx_type; /* Type of chunk index */ unsigned ndims; /* Num dimensions in chunk */ uint32_t dim[H5O_LAYOUT_NDIMS]; /* Size of chunk in elements */ uint32_t size; /* Size of chunk in bytes */ - H5RC_t *btree_shared; /* Ref-counted info for B-tree nodes */ const struct H5D_chunk_ops_t *ops; /* Pointer to chunked layout operations */ + union { + H5O_layout_chunk_btree_t btree; /* Information for v1 B-tree index */ + } u; } H5O_layout_chunk_t; typedef struct H5O_layout_compact_t { |