Filesystems and case-insensitivity
Filesystems and case-insensitivity
Posted Nov 29, 2018 9:06 UTC (Thu) by dgm (subscriber, #49227)In reply to: Filesystems and case-insensitivity by smurf
Parent article: Filesystems and case-insensitivity
> No, you can't do it in userspace. The kernel does not have directory locking, which you'd need for an atomic "create a file while making sure that there is no other file with the same name (case-insensitive)" operation.
Yes, you can. You only need to use the canonical representation of the file name (the case-folded one) and check that file name.
