Re: [PATCH v2 2/2] exfat currently unconditionally strips trailing periods '.' when performing path lookup, but allows them in the filenames during file creation. This is done intentionally, loosely following Windows behaviour and specifications which ...

From: Kohada.Tetsuhiro@xxxxxxxxxxxxxxxxxxxxxxxxxxx
Date: Thu Mar 17 2022 - 05:15:09 EST


Hi, David.

Thank you for confirming the actual behavior.

> Please explain how you came to that conclusion.
> I did some further tests using the win32 CopyFile() API directly[1] on
> Windows10 and observe that both trailing periods and trailing spaces are
> trimmed for an exfat destination path.

I'm using the native api to investigate the behavior of the filesystem on windows.
This time, I verified it using NtCreateFile().
https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/nf-ntifs-ntcreatefile

Cygwin and some tools can also create filenames with a trailing dot.

BR
T.Kohada