GNU bug report logs - #35701
guix size should account for hard links in its disk space calculation

Previous Next

Package: guix;

Reported by: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Date: Sun, 12 May 2019 19:19:01 UTC

Severity: normal

Full log


Message #8 received at 35701 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 35701 <at> debbugs.gnu.org
Subject: Re: bug#35701: guix size should account for hard links in its disk
 space calculation
Date: Tue, 14 May 2019 10:17:59 +0200
Salut Maxim,

Maxim Cournoyer <maxim.cournoyer <at> gmail.com> 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 ‘guix pack’ or when evaluating the amount of data that will
actually be transferred over the wire) where you want to know the
“apparent size”, ignoring hard links.

Note that it’s a bit more work to take hard links into account since
currently ‘guix size’ just queries each store item’s size to the
daemon.

Thanks,
Ludo’.




This bug report was last modified 6 years and 31 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.