summaryrefslogtreecommitdiffstats
path: root/src/H5FDonion.h
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2022-05-12 04:05:04 (GMT)
committerGitHub <noreply@github.com>2022-05-12 04:05:04 (GMT)
commit29eb6f4df5b65948463bb67ab97e6d78cffa0066 (patch)
tree9ae5a68531efa9a05ce5a9728dc2be610c9af398 /src/H5FDonion.h
parent6e6dbf2e81660a65d3aec955c85d59fa479f3b3b (diff)
downloadhdf5-29eb6f4df5b65948463bb67ab97e6d78cffa0066.zip
hdf5-29eb6f4df5b65948463bb67ab97e6d78cffa0066.tar.gz
hdf5-29eb6f4df5b65948463bb67ab97e6d78cffa0066.tar.bz2
Onion VFD: Refactoring (#1765)
* Struct cleanup * More renaming * Minor cleanup * Removed aspirational code from the feature * Revert "Removed aspirational code from the feature" This reverts commit 0b162d16a175a08565089f829014d0d93e171a23. * Split header code into new files, history_header --> header * In-memory things are size_t now * Minor renaming * More encode/decode functions use size_t instead of uint64_t
Diffstat (limited to 'src/H5FDonion.h')
-rw-r--r--src/H5FDonion.h26
1 files changed, 18 insertions, 8 deletions
diff --git a/src/H5FDonion.h b/src/H5FDonion.h
index c91010c..54af14e 100644
--- a/src/H5FDonion.h
+++ b/src/H5FDonion.h
@@ -21,19 +21,29 @@
#define H5FD_ONION (H5FDperform_init(H5FD_onion_init))
#define H5FD_ONION_VALUE H5_VFD_ONION
-#define H5FD_ONION_ENABLE_INDEX_STATS 0
+/* Current version of the fapl info struct */
+#define H5FD_ONION_FAPL_INFO_VERSION_CURR 1
-#define H5FD_ONION_FAPL_INFO_VERSION_CURR 1
-#define H5FD_ONION_FAPL_INFO_FLAG_FORCE_OPEN 1
-#define H5FD_ONION_FAPL_INFO_CREATE_FLAG_ENABLE_DIVERGENT_HISTORY 1
-#define H5FD_ONION_FAPL_INFO_CREATE_FLAG_ENABLE_PAGE_ALIGNMENT 2
-#define H5FD_ONION_FAPL_INFO_COMMENT_MAX_LEN 255
-#define H5FD_ONION_FAPL_INFO_REVISION_ID_LATEST UINT64_MAX
+/* Flag to open a file that has a locked header (after crashes, for example) */
+#define H5FD_ONION_FAPL_INFO_FLAG_FORCE_OPEN 1
+
+/* Flag to enable opening older revisions in write mode, creating a tree */
+#define H5FD_ONION_FAPL_INFO_CREATE_FLAG_ENABLE_DIVERGENT_HISTORY 0x1
+
+/* Flag to require page alignment of onion revision data */
+#define H5FD_ONION_FAPL_INFO_CREATE_FLAG_ENABLE_PAGE_ALIGNMENT 0x2
+
+/* Max length of a comment */
+#define H5FD_ONION_FAPL_INFO_COMMENT_MAX_LEN 255
+
+/* Indicates that you want the latest revision
+ * TODO: Does this work?
+ */
+#define H5FD_ONION_FAPL_INFO_REVISION_ID_LATEST UINT64_MAX
typedef enum H5FD_onion_target_file_constant_t {
H5FD_ONION_STORE_TARGET_H5, /* Onion history as part of HDF5 file */
H5FD_ONION_STORE_TARGET_ONION, /* Separate, single "onion" file */
- /* TODO: other storage location/scheme? */
} H5FD_onion_target_file_constant_t;
/*-----------------------------------------------------------------------------