git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Rast <trast@student.ethz.ch>
To: Marat Radchenko <marat@slonopotamus.org>
Cc: <git@vger.kernel.org>
Subject: Re: [BUG] git repack fails if .git/objects/pack is on a separate partition
Date: Tue, 19 Oct 2010 08:59:42 +0200	[thread overview]
Message-ID: <201010190859.43098.trast@student.ethz.ch> (raw)
In-Reply-To: <1287469706023-5649732.post@n2.nabble.com>

Marat Radchenko wrote:
> fatal: unable to rename temporary pack file: Invalid cross-device link
> error: failed to run repack
> 
> Reason:
> write_pack_file in builtin/pack-objects.c first writes tmp file in
> "pack/tmp_pack_XXXXXX". 

What's your git version?  Since 8b4eb6b (Do not perform
cross-directory renames when creating packs, 2008-09-22), which was
first released in 1.6.0.3 and 1.6.1, it should only create and rename
files within the pack/ subdirectory.  Which is what you are implying
in the above snippet, but this should never result in a cross-device
rename, so maybe I'm missing something.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch

  reply	other threads:[~2010-10-19  7:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-19  6:28 [BUG] git repack fails if .git/objects/pack is on a separate partition Marat Radchenko
2010-10-19  6:59 ` Thomas Rast [this message]
2010-10-19  7:29   ` Marat Radchenko
2010-10-19  7:40     ` Marat Radchenko
2010-10-19  9:50       ` [PATCH] repack: place temporary packs under .git/objects/pack/ Thomas Rast
2010-10-19 10:17         ` Marat Radchenko
2010-10-19 16:33         ` Junio C Hamano

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=201010190859.43098.trast@student.ethz.ch \
    --to=trast@student.ethz.ch \
    --cc=git@vger.kernel.org \
    --cc=marat@slonopotamus.org \
    /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).