It's often recommended to enable dir_index option on ext3 filesystems e.g. with
sudo tune2fs -O dir_index /dev/dm-1
However, existing directories on that filesystem are not converted to indexed format automatically.
Is there any way to tell if particular directory has been indexed?
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:From the
e2fsck
man page: