There's a good field in the struct ext2_dir_entry_2, i.e., file_type.
Using the field, we don't have to read the inode to determine the
file type.  This should be very useful for INN news servers, when
scaning the directory, which has to check all names of regular files
(articles) skipping any directory entries.

However, I can't find a tool to turn on the EXT2_FEATURE_INCOMPAT_FILETYPE
bit on the super block.  Does someone already have such a tool?
Or I just remove the EXT2_HAS_INCOMPAT_FEATURE macro which is
checking the bit.  It looks like, there's no harm even if I remove
the MACRO in the kernel code.
--
Sang-yong Suh

Reply via email to