[Monodevelop-devel] Atomic file write API
monoman at gmail.com
Mon Mar 16 14:53:30 EDT 2009
It can be done on a additional layer, but not in the framework as that
changes the contract (or perhaps the better term is semantics) of that API
and so it would not have the same results in .NET and in Mono.
Just my two cents,
On Mon, Mar 16, 2009 at 3:46 PM, Levi Bard <
taktaktaktaktaktaktaktaktaktak at gmail.com> wrote:
> >> 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
> Monodevelop-devel-list mailing list
> Monodevelop-devel-list at lists.ximian.com
Rafael "Monoman" Teixeira
"I myself am made entirely of flaws, stitched together with good
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Monodevelop-devel-list