From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pjotr Prins Subject: Re: /gnu/store/.links/ Date: Fri, 9 Feb 2018 18:56:27 +0100 Message-ID: <20180209175627.GA7570@thebird.nl> References: <20180209112214.GA5316@thebird.nl> <87d11e747o.fsf@elephly.net> <20180209142400.GA6348@thebird.nl> <87372ayu7h.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekCy3-000478-Na for guix-devel@gnu.org; Fri, 09 Feb 2018 13:00:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekCxy-0004ZY-9i for guix-devel@gnu.org; Fri, 09 Feb 2018 13:00:11 -0500 Content-Disposition: inline In-Reply-To: <87372ayu7h.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?iso-8859-1?Q?Court=E8s?= Cc: Guix-devel On Fri, Feb 09, 2018 at 06:00:02PM +0100, Ludovic Court=C3=A8s wrote: > In practice, when the maximum number of links is reached, we simply > transparently skip deduplication. See this commit: >=20 > commit 12b6c951cf5ca6055a22a2eec85665353f5510e5 > Author: Ludovic Court=C3=A8s > Date: Fri Oct 28 20:34:15 2016 +0200 >=20 > daemon: Do not error out when deduplication fails due to ENOSPC. >=20 > This solves a problem whereby if /gnu/store/.links had enough ent= ries, > ext4's directory index would be full, leading to link(2) returnin= g > ENOSPC. >=20 > * nix/libstore/optimise-store.cc (LocalStore::optimisePath_): Upo= n > ENOSPC from link(2), print a message and return instead of throwi= ng a > 'SysError'. >=20 > It does scale well, and it=E2=80=99s been here =E2=80=9Cforever=E2=80=9D= . OK. My mindset is probably ext2... > If you=E2=80=99re wondering how much gets deduplicated, see > . > :-) Fancy that :) Pj.