aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-08-05 16:25:48 -0400
committerJeff Garzik <jeff@garzik.org>2006-08-05 16:25:48 -0400
commite78673577ce02c308b1a8df11da8bd7914ac9920 (patch)
tree4344c619c44b924c3cdb80136b275c654e449ae6
parent4569638405d7cc1bdd487a4c9e49ffa9dc7adfad (diff)
downloaddbfs-e78673577ce02c308b1a8df11da8bd7914ac9920.tar.gz
Add comments for dbfs constants.
-rw-r--r--dbfs.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/dbfs.h b/dbfs.h
index fb96e4f..30e627c 100644
--- a/dbfs.h
+++ b/dbfs.h
@@ -24,18 +24,18 @@
#define ALIGN(x,a) (((x)+(a)-1)&~((a)-1))
enum {
- DBFS_BLK_ID_LEN = 20,
+ DBFS_BLK_ID_LEN = 20, /* block id (sha1 hash) len */
DBFS_UNLINK_DIR = (1 << 0),
- DBFS_ROOT_INO = 1,
+ DBFS_ROOT_INO = 1, /* root inode number */
- DBFS_DIRENT_ALIGN = 8,
+ DBFS_DIRENT_ALIGN = 8, /* struct dbfs_dirent alignment */
- DBFS_XATTR_NAME_LEN = 256,
+ DBFS_XATTR_NAME_LEN = 256, /* extended attr limits */
DBFS_XATTR_MAX_LEN = (1024 * 1024),
- DBFS_XLIST_ALIGN = 8,
+ DBFS_XLIST_ALIGN = 8, /* struct dbfs_xlist alignment */
/* our data items are small, so use the smallest possible page
* size. This is a guess, and should be verified by looking at
@@ -48,10 +48,11 @@ enum {
*/
DBFS_PGSZ_DATA = 2048,
- DBFS_MAX_EXT_LEN = (4 * 1024 * 1024),
+ DBFS_MAX_EXT_LEN = (4 * 1024 * 1024), /* max extent len */
};
enum {
+ /* dirent magic number */
DBFS_DE_MAGIC = 0xd4d4d4d4U,
};