From: Martin Steigerwald <Martin@lichtvoll.de>
To: Chris Mason <chris.mason@oracle.com>,
linux-btrfs@vger.kernel.org, sliedes@cc.hut.fi
Cc: 642603@bugs.debian.org
Subject: Re: Number of hard links limit
Date: Wed, 12 Oct 2011 19:34:06 +0200 [thread overview]
Message-ID: <201110121934.07105.Martin@lichtvoll.de> (raw)
In-Reply-To: <20100806134607.GB19942@think>
Hello,
Am Freitag, 6. August 2010 schrieb Chris Mason:
> On Fri, Aug 06, 2010 at 02:30:39PM +0300, Sami Liedes wrote:
> > On Tue, Aug 03, 2010 at 12:22:14AM +0200, Oystein Viggen wrote:
> > > IIRC, the limit on hard links is per directory. That is, if you
> > > put each hard link into its own directory, there's basically no
> > > limit to the amount of hard links you can make to one file.
> >
> > Yes, that's always pointed out in these threads. Still, it seems to
> > be breaking real use cases also beyond backuppc (someone mentioned
> > installing some Gentoo package).
>
> Right, this will get fixed in a future btrfs update. We're focusing on
> stability with what we have right now, but I do agree we should have
> done this link back reference design differently.
What is the status of fixing the limits of hardlinks in BTRFS?
It is now easy to hit on Debian systems that have git package installed:
Preparing to replace git 1:1.7.6.3-1 (using .../git_1%3a1.7.7-1_amd64.deb)
...
Unpacking replacement git ...
dpkg: error processing /var/cache/apt/archives/git_1%3a1.7.7-1_amd64.deb
(--unpack):
unable to make backup link of `./usr/lib/git-core/git-send-pack' before
installing new version: Too many links
configured to not write apport reports
dpkg-deb: error: subprocess paste
was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/git_1%3a1.7.7-1_amd64.deb
also see:
git - too many hardlinks in /usr/lib/git-core
http://bugs.debian.org/642603
While above bug might be fixed by using symlinks or by some other
workaround, I think this limit will be hit more likely as BTRFS matures. I
think it should be fixed, before the experimental flag of BTRFS is removed.
Ciao,
--
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7
next prev parent reply other threads:[~2011-10-12 17:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-02 11:40 Number of hard links limit Sami Liedes
2010-08-02 13:05 ` Xavier Nicollet
2010-08-02 18:31 ` Anthony Roberts
2010-08-02 19:56 ` Michael Niederle
2010-08-02 20:43 ` Roberto Ragusa
2010-08-02 22:22 ` Oystein Viggen
2010-08-06 11:30 ` Sami Liedes
2010-08-06 13:46 ` Chris Mason
2010-08-08 12:32 ` Roberto Ragusa
2011-10-12 17:34 ` Martin Steigerwald [this message]
2011-11-08 21:23 ` Sami Liedes
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=201110121934.07105.Martin@lichtvoll.de \
--to=martin@lichtvoll.de \
--cc=642603@bugs.debian.org \
--cc=chris.mason@oracle.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=sliedes@cc.hut.fi \
/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).