Forgive me, what does the sentence above mean? Paste it out of order?Matthias is right. readdir is badly architected, and no one has fixed
it for ~30 years.
As long as M$ windows has the same problem, it's justified that we have that
problem for 30 years now.
It should be possible to perform an atomic readdir if that is what you
want to do and if you have space in your process to stuff the result.
How much would it cost to always append the new name into the directory rather
than modifying it in place?
OTOH, especially Reiserfs does not use linear fileWe use sorted directories.
lists, so it would get tricky.