]> git.ipfire.org Git - thirdparty/u-boot.git/commit
ext4: detect directories in ext4fs_exists()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 20 Feb 2024 11:54:23 +0000 (12:54 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 4 Mar 2024 15:25:47 +0000 (10:25 -0500)
commite70f04fb8d69b9e02af608ec4b292bdf2f37c915
tree17be275a389563d34f61f41de620819eab72398d
parent3766a249a3c0686c690bab1ce31a1c1090c74d29
ext4: detect directories in ext4fs_exists()

While fat_exists() reports directories and files as existing
ext4fs_exists() only recognizes files. This lead to errors
when using systemd-boot with an ext4 file-system.

Change ext4fs_exists() to find any type of inode:
files, directories, symbolic links.

Fixes: a1596438a689 ("ext4fs ls load support")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
fs/ext4/ext4_common.c
fs/ext4/ext4_common.h
fs/ext4/ext4fs.c