Re: [PATCH] write_sha1_buffer
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Apr 16, 2005, 02:59 UTC
- Message-ID
- <Pine.LNX.4.58.0504151958000.7211@ppc970.osdl.org>
- In-Reply-To
- <Pine.LNX.4.58.0504151942130.7211@ppc970.osdl.org>
On Fri, 15 Apr 2005, Linus Torvalds wrote:
> > (This is also why we should write to a temp-file and then do an atomic > "rename()").
Btw, before anybody asks: I do _not_ think that we should do fsync() etc. We don't actually destroy any old state when we write a new object, so even if the machine does go down, we really should just do an fsck and then re-try the operation.
Anal people (or people with machines that crash) can add it later if they really want.
Linus