Case-insensitive filesystem lookups
Case-insensitive filesystem lookups
Posted May 23, 2018 18:25 UTC (Wed) by saffroy (guest, #43999)In reply to: Case-insensitive filesystem lookups by epa
Parent article: Case-insensitive filesystem lookups
I'm not sure mv(1) behaves like that on Linux nowadays:
$ strace mv foo bar
...
stat("bar", 0x7fffffffdd40) = -1 ENOENT (No such file or directory)
lstat("foo", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
lstat("bar", 0x7fffffffda10) = -1 ENOENT (No such file or directory)
rename("foo", "bar") = 0
...
But apps are certainly allowed to do link+unlink, and it should work reliably (ie. for a case-insensitive mount the link call should fail with EEXIST).
