how to tell if a directory on ext3 is indexed already?
Solution 1:
I'm not aware of a way to tell if a directory has been indexed, but you can ensure that they all get indexed by running this after setting the dir_index
option:
e2fsck -D /dev/dm-1
From the e2fsck
man page:
-D Optimize directories in filesystem. This option causes e2fsck to try to optimize all directories, either by reindexing them if the filesystem supports directory indexing, or by sorting and compressing directories for smaller directories, or for filesys- tems using traditional linear directories.