Filesystems and case-insensitivity
Filesystems and case-insensitivity
Posted Nov 28, 2018 21:00 UTC (Wed) by smurf (subscriber, #17840)In reply to: Filesystems and case-insensitivity by tnoo
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. Thus if you create "makefile" you need to scan the whole directory for any other matching filename, and that *still* doesn't stop anybody from introducing consistency errors (you can race to create "Makefile" and "MakeFile" at the same time).
The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:
Note: you can avoid this step in the future by logging into your LWN account.