]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs/ntfs3: Modified fix directory element type detection
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Fri, 24 Nov 2023 08:17:07 +0000 (11:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:34:53 +0000 (13:34 +0100)
commit06144cdddad607ab7bb1af95052c2d72d4d5a264
tree4cd6e7099c491b2c9ea333f426f06f27f88822ea
parent15735a62add3c4dbe50437f78b5719edf8c9c547
fs/ntfs3: Modified fix directory element type detection

[ Upstream commit 22457c047ed971f2f2e33be593ddfabd9639a409 ]

Unfortunately reparse attribute is used for many purposes (several dozens).
It is not possible here to know is this name symlink or not.
To get exactly the type of name we should to open inode (read mft).
getattr for opened file (fstat) correctly returns symlink.

Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ntfs3/dir.c