From: Jeff King <peff@peff.net>
To: Junio C Hamano <gitster@pobox.com>
Cc: Brodie Rao <brodie@sf.io>,
git@vger.kernel.org, Bryan Turner <bturner@atlassian.com>,
Stefan Saasen <ssaasen@atlassian.com>
Subject: Re: [PATCH] gc: support temporarily preserving garbage
Date: Fri, 5 Dec 2014 04:30:29 -0500 [thread overview]
Message-ID: <20141205093029.GD32112@peff.net> (raw)
In-Reply-To: <xmqq388vuw9e.fsf@gitster.dls.corp.google.com>
On Thu, Dec 04, 2014 at 10:04:29AM -0800, Junio C Hamano wrote:
> > If it is a problem (and again, I am just guessing), I'd imagine you
> > would need a similar setup to what you proposed for unlink(): before
> > renaming "packed-refs.lock" into "packed-refs", hard-link it into your
> > "trash" area. And you'd probably want to intercept rename() there, to
> > catch all places where we use this technique.
>
> Also we need to take it into account that it is not an issue unique
> to Git that the server side may expire these .nfsXXXXX entries left
> by an NFS client ("silly rename") to keep files that have been
> removed or renamed away alive. Aren't there a knob on the NFS
> server end to control how long these are kept unexpired to avoid
> stale filehandle errors, so that not just Git but all applications
> running on NFS client machines will not be hurt by it?
>
> Working it around at the application program level for each and
> every application that runs on a machine that can NFS mount
> filesystems from elsewhere may be simply madness, no?
Thanks. That is the vague feeling I have about the series, but without
having actually _seen_ the problem or knowing to what extent it affects
git, I didn't want to say anything so definite (e.g., I am only guessing
that rename() is a problem, but from the original description, it sounds
quite plausible that it is).
If this can be fixed outside of git, I very much agree that is the best
path forward.
-Peff
prev parent reply other threads:[~2014-12-05 9:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-14 1:16 [PATCH] gc: support temporarily preserving garbage Brodie Rao
2014-11-14 23:01 ` Junio C Hamano
2014-11-15 1:49 ` Stefan Saasen
2014-11-17 21:34 ` Jeff King
2014-11-17 23:59 ` Stefan Saasen
2014-11-18 0:21 ` Jeff King
2014-12-03 21:21 ` Brodie Rao
2014-12-04 9:10 ` Jeff King
2014-12-04 18:04 ` Junio C Hamano
2014-12-05 9:30 ` Jeff King [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141205093029.GD32112@peff.net \
--to=peff@peff.net \
--cc=brodie@sf.io \
--cc=bturner@atlassian.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=ssaasen@atlassian.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).