Hi!
Well. If people rsync from you, they will start fetching incompleteWhich race are you concerned with exactly?Problem is "clasical create temp file then delete it" is racy. See theSo this would be a local POSIX filesystem only solution to a problemTake a look at how many actively used filesystems out there that haveWell. Yes, there are non-unix filesystems around. You have to deal
some variant of sillyrename(), and explain what you want to do in those
cases.
with silly files on them, and this will not be different.
that has yet to be formulated?
archives. That is useful & common operation.
User wants to test for a file with name "foo.txt"
* create "foo.txt~" (or whatever)
* write contents into "foo.txt~"
* rename "foo.txt~" to "foo.txt"
Until rename is done, the file does not exists and is not complete.
You will potentially have a garbage file to clean up if the program
(or system) crashes, but that is not racy in a classic sense, right?
foo.txt~. Plus the garbage issue.
This is more of a garbage clean up issue?Also. Plus sometimes you want temporary "file" that is
deleted. Terminals use it for history, etc...