Directory indexing

Directory indexing feature improves file access time in large directories or directories containing many files by using hashed binary trees to store the directory information. It is a good way to enable it for example on a web server which has thousands of files in a single directory:

tune2fs -O dir_index /dev/sda3

Directory index will be created for new files but you can regenerate index with:

e2fsck -D -f /dev/sda3

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s