..
Err, no actually. I want a consistent disk state,
either all old or all new data after a crash.
Not loss of BOTH new and old data.
And the example above is trying to show, what??
Looks like a temporary file case, except the code
is buggy and should be doing the unlink() before
the write() call.
But thanks for looking at this stuff!
--