From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#35701: guix size should account for hard links in its disk space calculation Date: Tue, 14 May 2019 10:17:59 +0200 Message-ID: <877eat30w8.fsf@gnu.org> References: <878svbv5v7.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:34926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQSeN-0003Wm-KD for bug-guix@gnu.org; Tue, 14 May 2019 04:19:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQSeM-0006P5-OG for bug-guix@gnu.org; Tue, 14 May 2019 04:19:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33658) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hQSeM-0006Ox-L5 for bug-guix@gnu.org; Tue, 14 May 2019 04:19:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hQSeM-0002W1-6z for bug-guix@gnu.org; Tue, 14 May 2019 04:19:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <878svbv5v7.fsf@gmail.com> (Maxim Cournoyer's message of "Sun, 12 May 2019 15:18:36 -0400") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Maxim Cournoyer Cc: 35701@debbugs.gnu.org Salut Maxim, Maxim Cournoyer skribis: > Conclusion: the size of grafts is added multiple times even though they > should be very light on disk usage given that they are mostly hard links > to the original, ungrafted output. I think there should be an option to take hard links into account, but it should probably not be done by default. There are cases (e.g., when using =E2=80=98guix pack=E2=80=99 or when evaluating the amount of data tha= t will actually be transferred over the wire) where you want to know the =E2=80=9Capparent size=E2=80=9D, ignoring hard links. Note that it=E2=80=99s a bit more work to take hard links into account since currently =E2=80=98guix size=E2=80=99 just queries each store item=E2=80=99= s size to the daemon. Thanks, Ludo=E2=80=99.