From: Marat Radchenko <marat@slonopotamus.org>
To: git@vger.kernel.org
Subject: [BUG] git repack fails if .git/objects/pack is on a separate partition
Date: Mon, 18 Oct 2010 23:28:26 -0700 (PDT) [thread overview]
Message-ID: <1287469706023-5649732.post@n2.nabble.com> (raw)
Console log:
Counting objects: 5137063, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (892984/892984), done.
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".
Then, it tries to rename it to "%s-%s.pack":
snprintf(tmpname, sizeof(tmpname), "%s-%s.pack",
base_name, sha1_to_hex(sha1));
...
if (rename(pack_tmp_name, tmpname))
die_errno("unable to rename temporary pack
file");
and happily fails because that crosses device boundary. Same problem with
index file. Suggested fix: do those renames inside pack directory or avoid
them at all.
--
View this message in context: http://git.661346.n2.nabble.com/BUG-git-repack-fails-if-git-objects-pack-is-on-a-separate-partition-tp5649732p5649732.html
Sent from the git mailing list archive at Nabble.com.
next reply other threads:[~2010-10-19 6:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-19 6:28 Marat Radchenko [this message]
2010-10-19 6:59 ` [BUG] git repack fails if .git/objects/pack is on a separate partition Thomas Rast
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=1287469706023-5649732.post@n2.nabble.com \
--to=marat@slonopotamus.org \
--cc=git@vger.kernel.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).