]> git.ipfire.org Git - thirdparty/grub.git/commit
fs/ext2: Ignore the large_dir incompat feature
authorTheodore Ts'o <tytso@mit.edu>
Wed, 31 Aug 2022 02:41:59 +0000 (22:41 -0400)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 4 Oct 2022 14:00:51 +0000 (16:00 +0200)
commit2e9fa73a040462b81bfbfe56c0bc7ad2d30b446b
treed6de355a616c09bc4d3cf87694b9e9e682a8b6c1
parent084dfe6d9c7a5144391ac1b5e6bca09c0878a3b1
fs/ext2: Ignore the large_dir incompat feature

Recently, ext4 added the large_dir feature, which adds support for
a 3 level htree directory support.

The GRUB supports existing file systems with htree directories by
ignoring their existence, and since the index nodes for the hash tree
look like deleted directory entries (by design), the GRUB can simply do
a brute force O(n) linear search of directories. The same is true for
3 level deep htrees indicated by large_dir feature flag.

Hence, it is safe for the GRUB to ignore the large_dir incompat feature.

Fixes: https://savannah.gnu.org/bugs/?61606
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/fs/ext2.c