fs/ntfs3: Fix getting file type
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Tue, 4 Jun 2024 07:41:39 +0000 (10:41 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Fri, 7 Jun 2024 11:31:08 +0000 (14:31 +0300)
commit24c5100aceedcd47af89aaa404d4c96cd2837523
treeba5ece0f1878ec5be5109974d84e48fde64d0c3e
parent1c308ace1fd6de93bd0b7e1a5e8963ab27e2c016
fs/ntfs3: Fix getting file type

An additional condition causes the mft record to be read from disk
and get the file type dt_type.

Fixes: 22457c047ed97 ("fs/ntfs3: Modified fix directory element type detection")
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/dir.c