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

Re: [PATCH] gc: support temporarily preserving garbage

From
SSStefan Saasen <ssaasen@atlassian.com>
Date
Nov 15, 2014, 01:49 UTC
Message-ID
<CADoxLGM3HLo-33LgWjuPKiS1s2XS6Z6ozpW1QskuqqbyR3Ng2A@mail.gmail.com>
In-Reply-To
<xmqqlhnd1j66.fsf@gitster.dls.corp.google.com>
On 15 November 2014 10:01, Junio C Hamano <gitster@pobox.com> wrote:
Show 6 quoted lines
>>  23 files changed, 375 insertions(+), 7 deletions(-)
>
> I am not sure if this much of code churn is warranted to work around
> issues that only happen on repositories on NFS servers that do not
> keep open-but-deleted files available.  Is it an option to instead
> have a copy of repository locally off NFS?

Unfortunately not providing delete-on-last-close semantics is true for most (all?) NFS servers that are accessed by multiple clients. NFS v3 is stateless so the server has no way of tracking open files accross clients and the silly rename work around only works within a single client. NFS v4 could support delete-on-last-close semantics but I’m not sure if there are actual implementations providing that. (This is based on my admittedly limited understanding of NFS, I’d love to learn that I’ve got this wrong).

We are susceptible to the same problem accessing shared repositories from multiple clients so we certainly appreciate the use case. Unfortunately copying repositories to the local nodes is not something that’d be feasible.

Is there another/better approach solving this problem?
Previous: Junio C HamanoNext: Jeff King
Message 3 of 10 in “gc: support temporarily preserving garbage”
  1. gc: support temporarily preserving garbageBrodie Rao, Nov 14, 2014
  2. Junio C HamanoNov 14, 2014
  3. Stefan SaasenNov 15, 2014
  4. Jeff KingNov 17, 2014
  5. Stefan SaasenNov 17, 2014
  6. Jeff KingNov 18, 2014
  7. Brodie RaoDec 3, 2014
  8. Jeff KingDec 4, 2014
  9. Junio C HamanoDec 4, 2014
  10. Jeff KingDec 5, 2014

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.