From: Linus Torvalds Date: Sat, 16 Apr 2005 02:59:59 GMT Subject: Re: [PATCH] write_sha1_buffer Message-ID: In-Reply-To: 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