aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/ext2fs/ext2fs.h
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2013-07-06 18:28:06 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2013-07-06 18:28:06 +0000
commit91f5a4670fecd56003b04db85b8abbe63a5ee4eb (patch)
treeef2ec6cef63cebe56cc828070a93f1f6323b646a /sys/fs/ext2fs/ext2fs.h
parent291a1934fa36be527bba60f5d24688687118b29a (diff)
downloadsrc-91f5a4670fecd56003b04db85b8abbe63a5ee4eb.tar.gz
src-91f5a4670fecd56003b04db85b8abbe63a5ee4eb.zip
Initial implementation of the HTree directory index.
This is a port of NetBSD's GSoC 2012 Ext3 HTree directory indexing by Vyacheslav Matyushin. It was cleaned up and enhanced for FreeBSD by Zheng Liu (lz@). This is an excellent example of work shared among different projects: Vyacheslav was able to look at an early prototype from Zheng Liu who was also able to check the code from Haiku (with permission). As in linux, the feature is not available by default and must be enabled explicitly with tune2fs. We still do not support the workarounds required in readdir for NFS. Submitted by: Zheng Liu Tested by: Mike Ma Sponsored by: Google Inc. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=252890
Diffstat (limited to 'sys/fs/ext2fs/ext2fs.h')
-rw-r--r--sys/fs/ext2fs/ext2fs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/fs/ext2fs/ext2fs.h b/sys/fs/ext2fs/ext2fs.h
index 9612cab24e93..7b16f0fcd40b 100644
--- a/sys/fs/ext2fs/ext2fs.h
+++ b/sys/fs/ext2fs/ext2fs.h
@@ -147,6 +147,7 @@ struct m_ext2fs {
int32_t e2fs_contigsumsize; /* size of cluster summary array */
int32_t *e2fs_maxcluster; /* max cluster in each cyl group */
struct csum *e2fs_clustersum; /* cluster summary in each cyl group */
+ int32_t e2fs_uhash; /* 3 if hash should be signed, 0 if not */
};
/* cluster summary information */
@@ -228,6 +229,12 @@ struct csum {
#define E2FS_ISCLEAN 0x0001 /* Unmounted cleanly */
#define E2FS_ERRORS 0x0002 /* Errors detected */
+/*
+ * Filesystem miscellaneous flags
+ */
+#define E2FS_SIGNED_HASH 0x0001
+#define E2FS_UNSIGNED_HASH 0x0002
+
/* ext2 file system block group descriptor */
struct ext2_gd {