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

Re: More problems...

From
Linus Torvalds <torvalds@osdl.org>
Date
May 2, 2005, 22:19 UTC
Message-ID
<Pine.LNX.4.58.0505021509530.3594@ppc970.osdl.org>
In-Reply-To
<Pine.LNX.4.60.0505022258150.27741@hermes-1.csi.cam.ac.uk>
On Mon, 2 May 2005, Anton Altaparmakov wrote:
> 
> Yes, yes, I know all tools are perfect and never have bugs but I am
> paranoid.  (-;
I do agree.
I think hardlinks are wonderful for
 - "git farms" (ie something like what kernel.org does, but in a more 
   controlled manner - right now kernel.org is really just a standard
   location for different people putting their own files in).
   In this environment, doing hard-linking should also imply 
	- mounting the filesystem "noatime"
	- using a different UID for the hardlinked objects
   ie the "farm administrator" does the hardlinking automatically, and 
   chown()'s them to himself, so that different git trees cannot screw 
   each other up. The "noatime" thing is there because having different 
   users means that git's internal "O_NOATIME" optimization no longer 
   works, and you really want to avoi dgetting lots of write-backs just 
   for "atime".
 - people who have lots of trees. I think Jeff Garzik has something like
   20+ BK trees. At that point, hardlinking just makes sense, and your 
   work patterns are likely to be aware of the different trees anyway.

But for "normal" situations, where you have a tree or two, the hardlinking win might not be big enough to warrant the maintenance headache. With hardlinking, you _do_ need to "trust" the other trees to some degree.

		Linus
Previous: Anton AltaparmakovNext: Petr Baudis
Message 15 of 24 in “More problems...”
  1. Russell KingApr 29, 2005
  2. Russell KingApr 29, 2005
  3. Linus TorvaldsApr 29, 2005
  4. Petr BaudisApr 29, 2005
  5. Ryan AndersonApr 29, 2005
  6. Thomas GlanzmannApr 29, 2005
  7. Linus TorvaldsApr 29, 2005
  8. Junio C HamanoApr 29, 2005
  9. Russell KingApr 29, 2005
  10. Anton AltaparmakovApr 29, 2005
  11. Petr BaudisMay 2, 2005
  12. Dave KleikampMay 2, 2005
  13. Thomas GlanzmannMay 2, 2005
  14. Anton AltaparmakovMay 2, 2005
  15. Linus TorvaldsMay 2, 2005
  16. Petr BaudisMay 3, 2005
  17. Daniel BarkalowMay 3, 2005
  18. Andreas GalMay 3, 2005
  19. Junio C HamanoMay 3, 2005
  20. Daniel BarkalowApr 29, 2005
  21. Junio C HamanoApr 29, 2005
  22. Split out "pull" from particular methodsDaniel Barkalow, Apr 30, 2005
  23. Add git-relink-script, a tool to hardlink two existing repositories.Ryan Anderson, May 4, 2005
  24. Petr BaudisMay 2, 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.