Htree

From Wikipedia, the free encyclopedia
Jump to: navigation, search

An HTree is a specialized tree data structure for directory indexing, similar to a B-tree. They are constant depth of either one or two levels, have a high fanout factor, use a hash of the filename, and do not require balancing.[1] Htree indexes are used in the ext3 and ext4 Linux filesystems, and were incorporated into the Linux kernel around 2.5.40.[2]

Contents

[edit] ext2

Htree indexes were originally implemented for ext2 but the patch never made it to the official branch. The dir_index feature can be enabled when creating an ext2 filesystem, but the ext2 code won't act on it.

[edit] ext3

Htree indexes are available in ext3 when the dir_index feature is enabled.

[edit] ext4

Htree indexes are turned on by default in ext4. This feature is implemented in Linux kernel 2.6.23.

[edit] See also

[edit] References

[edit] External links

Personal tools
Namespaces
Variants
Actions
Navigation
Interaction
Toolbox
Print/export