[Monodevelop-devel] Atomic file write API

Levi Bard taktaktaktaktaktaktaktaktaktak at gmail.com
Mon Mar 16 14:46:02 EDT 2009


>> Shouldn't some of this be pushed down into the mono framework?
>> Obviously, stuff like restoring from backups is out-of-spec and must
>> be external, but shouldn't POSIX minutiae be handled by the System.IO
>> implementation?
>
> How could it be fixed? AFAIK the truncate-on-overwrite exists on
> Windows (though not the need for fsync), which is one reason why
> Transactional NTFS was added.

Perhaps internally, a write-mode FileStream writes to a temp file,
then renames on close/dispose (maybe fsync on Flush() where
necessary/supported).

-- 
http://homes.eff.org/~barlow/EconomyOfIdeas.html
http://www.dreamsongs.com/MobSoftware.html
http://www.gnu.org/philosophy/shouldbefree.html


More information about the Monodevelop-devel-list mailing list