diff options
author | David Young <dyoung@hdfgroup.org> | 2020-02-03 21:04:21 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-02-03 21:04:21 (GMT) |
commit | 29ee63787b8b75bdbf16468c9a7d9955e55eec78 (patch) | |
tree | 3901db989b92e7c64ad15b2593abe28c1ce85278 /src/H5Fpkg.h | |
parent | 64f1ef1fda4dddb85ff16166051c7df3777254d7 (diff) | |
download | hdf5-29ee63787b8b75bdbf16468c9a7d9955e55eec78.zip hdf5-29ee63787b8b75bdbf16468c9a7d9955e55eec78.tar.gz hdf5-29ee63787b8b75bdbf16468c9a7d9955e55eec78.tar.bz2 |
Numerous changes supporting a floating shadow index:
Add to the H5F_shared_t (!) a new member that tells the index in
the shadow file where the index should be written.
Allocate shadow filespace for the header and the index separately so
that the index can float. Update tests to match the expected original
location of the index.
Introduce vfd_swmr_enlarge_shadow_index(), a routine that allocates space in
the shadow file for a new index that has (up to) twice as many entries as the
old index, allocates a new in-core index of the same size, and copies the old
in-core index to the new. Call vfd_swmr_enlarge_shadow_index() in
H5PB_vfd_swmr__update_index() when the in-core index has too few slots.
In the comment at the top of H5FD__vfd_swmr_load_hdr_and_idx(), describe the
protocol that it follows, now, when it reads the shadow header and index.
Delete some dead code in the function and add a bit of diagnostic code.
TBD quiet the diagnostic code.
In H5F_vfd_swmr_init(), follow the protocol: write the index, first, then
the header.
Modify property-list checks and tests to reserve no fewer than two pages at the
front of the shadow file for the header and index.
Diffstat (limited to 'src/H5Fpkg.h')
-rw-r--r-- | src/H5Fpkg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5Fpkg.h b/src/H5Fpkg.h index de0f9f2..b0878f7 100644 --- a/src/H5Fpkg.h +++ b/src/H5Fpkg.h @@ -402,6 +402,7 @@ struct H5F_shared_t { * configuration from the * FAPL used to open the file */ + haddr_t writer_index_offset; hbool_t vfd_swmr; /* The file is opened with VFD * SWMR configured or not */ |