aboutsummaryrefslogtreecommitdiffstats
path: root/dbfs.h
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-08-05 07:18:01 -0400
committerJeff Garzik <jeff@garzik.org>2006-08-05 07:18:01 -0400
commit7a96bdc61f66c9c465ec35fb99082e357f9b9054 (patch)
tree8b6c283e1b5252716baa3c1ee03263b351a679b0 /dbfs.h
parentcdac8a5c4ad0cbcc3a610bbbe768dbe06936bae1 (diff)
downloaddbfs-7a96bdc61f66c9c465ec35fb99082e357f9b9054.tar.gz
Create hashref database, add data write/delete support routines.
Diffstat (limited to 'dbfs.h')
-rw-r--r--dbfs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/dbfs.h b/dbfs.h
index 02b002c..1bb578e 100644
--- a/dbfs.h
+++ b/dbfs.h
@@ -29,6 +29,8 @@ enum {
* as well as large ones
*/
DBFS_PGSZ_DATA = 2048,
+
+ DBFS_MAX_EXT_LEN = (4 * 1024 * 1024),
};
enum {
@@ -67,6 +69,10 @@ struct dbfs_extent {
dbfs_blk_id_t id; /* block id */
} __attribute__ ((packed));
+struct dbfs_hashref {
+ guint32 refs;
+} __attribute__ ((packed));
+
struct dbfs_raw_inode {
guint64 ino;
guint64 version;
@@ -96,6 +102,7 @@ struct dbfs {
DB_ENV *env;
DB *meta;
DB *data;
+ DB *hashref;
guint64 next_inode;
};