aboutsummaryrefslogtreecommitdiffstats
path: root/libibex/block.h
diff options
context:
space:
mode:
Diffstat (limited to 'libibex/block.h')
-rw-r--r--libibex/block.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libibex/block.h b/libibex/block.h
index 40262de6e2..deb6494231 100644
--- a/libibex/block.h
+++ b/libibex/block.h
@@ -25,8 +25,12 @@ struct _root {
blockid_t words; /* root of words index */
blockid_t names; /* root of names index */
+
+ char flags; /* state flags */
};
+#define IBEX_ROOT_SYNCF (1<<0) /* file is synced */
+
/* basic disk structure for (data) blocks */
struct _block {
unsigned int next:32-BLOCK_BITS; /* next block */
@@ -70,6 +74,8 @@ struct _memcache {
GHashTable *index; /* blockid->memblock mapping */
int fd; /* file fd */
+ int flags; /* flags (mirror of root->flags) */
+
#ifdef IBEX_STATS
GHashTable *stats;
#endif