git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Linus Torvalds
Message 3 of 3 in “write_sha1_buffer”
  1. write_sha1_bufferMorten Welinder, Apr 16, 2005
  2. Linus TorvaldsApr 16, 2005
  3. Linus TorvaldsApr 16, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.