Rename() function calls name in capital letters, instead of how it is stored

37 views
Skip to first unread message

Tomas Dalebjörk

unread,
Nov 2, 2020, 7:32:26 PM11/2/20
to WinFsp
Hi

I noticed that the Rename() API uses capital letters for the source name, instead of how it is written on disk.

GetSecurityByName() calls the source name correctly
but when the Rename () Api gets called, the source file name is converted to capital letters

is there a way to configure NTFS so that all file names are threated the same?
or in WinFsp

in my code, a file named ‘tomas.txt’ is today stored as case sensitive format, which means that ‘TOMAS.TXT’ is not the same file...

Well, I could translate all to CAPITAL or lowercase, but I noticed that listing files in Windows presents the files how it was originally written, so I prefer to keep it in this way..
not sure if windows is case sensitive or not, but at least the presentation is of file names are as it was originally written..

any suggestions how to resolve this?

I read about a flag in windows on the directory folders one can set to turn on/off case sensitiveness
looking forward to hear from you soon

Thanks for a great tool

Regards Tomas


Sent from my iPhone

Bill Zissimopoulos

unread,
Nov 2, 2020, 9:00:05 PM11/2/20
to Tomas Dalebjörk, WinFsp
Hello, Tomas:

This sounds similar to a recent issue on GitHub:

https://github.com/billziss-gh/winfsp/issues/324

If you believe your issue is the same and you have a GitHub account please follow up there. I intend to look into the GitHub issue more closely in the future, but I am very busy at the moment.

I am fairly certain that I have not observed this behavior in any of my file systems. The Rename operation is also tested regularly in WinFsp's test suite. However this may be a recent regression or something that the test suite misses.

Thanks.

Bill
--
You received this message because you are subscribed to the Google Groups "WinFsp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to winfsp+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/winfsp/956363A4-4FB6-4804-9E90-D68DC61A68A3%40gmail.com.
Reply all
Reply to author
Forward
0 new messages