diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-08-05 07:18:01 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-08-05 07:18:01 -0400 |
commit | 7a96bdc61f66c9c465ec35fb99082e357f9b9054 (patch) | |
tree | 8b6c283e1b5252716baa3c1ee03263b351a679b0 /dbfs.h | |
parent | cdac8a5c4ad0cbcc3a610bbbe768dbe06936bae1 (diff) | |
download | dbfs-7a96bdc61f66c9c465ec35fb99082e357f9b9054.tar.gz |
Create hashref database, add data write/delete support routines.
Diffstat (limited to 'dbfs.h')
-rw-r--r-- | dbfs.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; }; |