From: Matthias Urlichs Date: Sun, 14 Aug 2005 10:02:42 GMT Subject: Re: [RFC][PATCH] Rewriting revs in place in push target repository Message-ID: In-Reply-To: <20050814022011.GA19897@taniwha.stupidest.org> Hi, Chris Wedgwood wrote: > On Sat, Aug 13, 2005 at 11:47:25PM +0200, Petr Baudis wrote: > >> I think it does not in real setups, since thanks to O_RDWR the >> file should be overwritten only when the write() happens. >> Can a 41-byte write() be non-atomic in any real conditions? > > if you journal metadata only you can see a file extended w/o having > the block flushed ??? but the file is *not* extended. Also, whether or not a block is flushed should only matter if the machine crashes ..? -- Matthias Urlichs | {M:U} IT Design @ m-u-it.de | smurf@smurf.noris.de Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de - - CONS [from LISP] 1. v. To add a new element to a list. 2. CONS UP: v. To synthesize from smaller pieces: "to cons up an example". -- From the AI Hackers' Dictionary