Re: [PATCH v1] ntfs: fix lookup of POSIX names with Windows-invalid characters

From: Namjae Jeon

Date: Wed Sep 16 2026 - 09:31:14 EST


On Sun, Sep 13, 2026 at 10:02 AM Baolin Liu <liubaolin12138@xxxxxxx> wrote:
>
> From: Hyunchul Lee <hyc.lee@xxxxxxxxx>
>
> POSIX FILE_NAME entries may contain characters such as '?' that are
> invalid in the Windows namespace. Directory index lookup currently
> passes an invalid-character error value to ntfs_collate_names(),
> causing lookup and removal of such names to fail with -EINVAL.
>
> Allow callers to disable invalid-character errors when collation is
> used for index traversal, and suppress those errors when comparing
> POSIX FILE_NAME attributes.
>
> Signed-off-by: Hyunchul Lee <hyc.lee@xxxxxxxxx>
> Tested-by: Baolin Liu <liubaolin@xxxxxxxxxx>
Applied it to #ntfs-next.
Thanks!