[PATCH 2/2] ntdll: Check for case-insensitive volumes.

Charles Davis cdavis at mymail.mines.edu
Mon Oct 18 12:13:15 CDT 2010


On 10/18/10 10:57 AM, Alexandre Julliard wrote:
> Charles Davis <cdavis at mymail.mines.edu> writes:
> 
>> When I wrote that, I was thinking, "If we do the stat() on a
>> case-insensitive file system, it will succeed even if the filename has
>> the wrong case. We don't want that when we're checking case, so we may
>> as well read the dirents to see if the file exists with the right case."
>> Is there something I'm missing? Would check_case even matter when
>> case_sensitive is FALSE?
> 
> If the file system is not case sensitive then there's no case to check.
Only if the file system doesn't preserve case. Most modern
case-insensitive file systems (FAT, NTFS, HFS) preserve case. CIOPFS
preserves case if it's allowed to write xattrs to the underlying FS.
This is why I even had the case-preserving handling in there in the
first place.

So, if I understand correctly, you think that, if we determine that file
system is case-insensitive, we should also assume it doesn't preserve
case. Is that correct?

Chip





More information about the wine-devel mailing list