encyclopegia.org

Dirhash

Dirhash is a feature of FreeBSD that improves the speed of finding files in a directory. Rather than finding a file in a directory using a linear search algorithm, FreeBSD uses a hash table. The feature is backwards-compatible because the hash table is built in memory when the directory is accessed, and it does not affect the on-disk format of the filesystem, in contrast to systems such as Htree. Free space for new entries is also tracked in-memory, allowing addition of new entries without having to scan the directory. Dirhash was implemented by Ian Dowse early in 2001 as an addition to UFS, operating in parallel with higher-level file system caching. It was imported into FreeBSD in July 2001. It was subsequently imported into OpenBSD in December 2003 and NetBSD in January 2005.

Dirhash is a feature of FreeBSD that improves the speed of finding files in a directory. Rather than finding a file in a directory using a linear search algorithm, FreeBSD uses a hash table. The feature is backwards-compatible because the hash table is built in memory when the directory is accessed, and it does not affect the on-disk format of the filesystem, in contrast to systems such as Htree. Free space for new entries is also tracked in-memory, allowing addition of new entries without having to scan the directory. Dirhash was implemented by Ian Dowse early in 2001 as an addition to UFS, operating in parallel with higher-level file system caching. It was imported into FreeBSD in July 2001. It was subsequently imported into OpenBSD in December 2003 and NetBSD in January 2005.

References

No reference rows published for this article.

Cite this article

MLA

"Dirhash." encyclopegia.org, 2024, https://encyclopegia.org/wiki/dirhash. Accessed 24 November 2026.

Chicago

"Dirhash." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/dirhash.

APA

encyclopegia.org. (2024). Dirhash. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/dirhash

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Eight O'Clock Walk

enwiki · references available

If All Goes Wrong

enwiki · references available

Electronic Journal of Sociology

enwiki · references available

My Dear Enemy

enwiki · references available

American Society of Nephrology

enwiki · references available

Fred Gray (composer)

enwiki · references available

Aris Maliagros

enwiki · references available

Estado de Minas

enwiki · references available

The Fallen King

enwiki · references available

American Philosophical Quarterly

enwiki · references available

Maytê Piragibe

enwiki · references available

Nabil Guelsifi

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1235049455 · 0.5 · snapshot enwiki-001235049455

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.