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)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Wed, 6 Dec 2023 14:46:07 +0000 (17:46 +0300)
commit22457c047ed971f2f2e33be593ddfabd9639a409
treef1c36579f09d617b54f0f96f88bd2b9ac484dc5c
parentc39de951282df9a60ef70664e4378d88006b2670
fs/ntfs3: Modified fix directory element type detection

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>
fs/ntfs3/dir.c