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

Re: Index/hash order

From
IMIngo Molnar <mingo@elte.hu>
Date
Apr 13, 2005, 20:02 UTC
Message-ID
<20050413200237.GA26635@elte.hu>
In-Reply-To
<Pine.LNX.4.58.0504131144160.4501@ppc970.osdl.org>
* Linus Torvalds <torvalds@osdl.org> wrote:
> > with a plaintext repository we could do the 'hardlink trick' (which 
> > brings in other manageability problems and limitations but is at least a 
> > partially good idea), which would make the working tree and the 
> > repository share the same inode in most cases.
Show 6 quoted lines
> However, the real issue is that you're really asking for trouble. 
> There are tons of tools that modify files without breaking the 
> hardlink. Even some editors do. So you just use the wrong tool on the 
> tree by mistake, and not only is your archive corrupt, you've 
> corrupted all other archives that might have shared the same object 
> directory.
that's what i loosely meant under 'manageability problems'.

I mentioned one solution earlier: to make the repository object an immutable file (the +i flag on the inode) - it really wants to be immutable after all. That would solve a whole range of 'accidental corruption' issues.

Another solution (suggested by Christer Weinigel) was to enforce immutability by making it owned by another user/group (git:git or whatever).

but having a binary compressed format is 'soft immutability', done cleverly.

	Ingo
Next: H. Peter Anvin
Message 1 of 20 in “Re: Index/hash order”
  1. Ingo MolnarApr 13, 2005
  2. H. Peter AnvinApr 13, 2005
  3. Ingo MolnarApr 13, 2005
  4. Ingo MolnarApr 13, 2005
  5. Ingo MolnarApr 13, 2005
  6. Updated base64 patchesH. Peter Anvin, Apr 13, 2005
  7. Linus TorvaldsApr 13, 2005
  8. enforcing DB immutabilityIngo Molnar, Apr 20, 2005
  9. Ingo MolnarApr 20, 2005
  10. Ingo MolnarApr 20, 2005
  11. Chris WedgwoodApr 20, 2005
  12. Nick Craig-WoodApr 20, 2005
  13. WoutApr 27, 2005
  14. Linus TorvaldsApr 13, 2005
  15. Baruch EvenApr 13, 2005
  16. Florian WeimerApr 13, 2005
  17. Linus TorvaldsApr 13, 2005
  18. Florian WeimerApr 13, 2005
  19. Ingo MolnarApr 14, 2005
  20. cache-cold repository performanceIngo Molnar, Apr 14, 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.