Info on htree hash directory indexing in ext4
I'm busy having a look at the ext4 filesystem, but am having problems understanding exactly how the htree hashing system works for indexed directories.
I've had a look around but can't find anything that explains it in sufficiently layman's language for me to get a proper grasp of it. Does anyone know of any online or offline sources that might help me out with this aspect of the filesystem? |
Finally found some decent info.
https://www.kernel.org/doc/ols/2002/...es-425-438.pdf "A Directory Index of Ext2" by Daniel Phillips (the guy who first developed ext's htree directory indexing, and who's now working on the Tux3 filesystem). A fascinating read for those who are interested. |
It is an interesting read. Thanks for posting the link.
|
Quote:
|
How to see if a directory is indexed
You can see if a directory is indexed on an ext4 filesystem with the "lsattr" command:
Code:
WORKSTATION spool # lsattr -d * I am still trying to figure out how to create a new indexed directory because I cannot rename mqueue to mqueue1 and create an empty mqueue to purge the mail spool because sendmail won't wrote to the new mqueue directory for some of what it is doing and exits without the "Index" option set. Thanks, David |
If you really need to empty the dir, how about stopping the sendmail service, then emptying the existing mqueue dir, then restarting sendmail?
|
All times are GMT -5. The time now is 09:50 PM. |