GNU bug report logs - #23979
[ER] guix gc should tell how much space it recovered

Previous Next

Package: guix;

Reported by: Vincent Legoll <vincent.legoll <at> gmail.com>

Date: Thu, 14 Jul 2016 10:55:02 UTC

Severity: normal

Done: Vincent Legoll <vincent.legoll <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Vincent Legoll <vincent.legoll <at> gmail.com>
Cc: 23979 <at> debbugs.gnu.org
Subject: Re: bug#23979: [ER] guix gc should tell how much space it recovered
Date: Fri, 15 Jul 2016 16:33:46 +0200
Vincent Legoll <vincent.legoll <at> gmail.com> skribis:

> It already shows:
> note: currently hard linking saves 485.41 MiB
>
> Recovered disk space would nicely complement that.

Indeed.

> Looks like I helped myself out of step 1:
> this is in guix/scripts/gc.scm if I'm not mistaken

Yep, you’re on the right track!

This code calls the ‘collect-garbage’ procedure, defined in (guix
store).  You’ll see that this procedure returns two values, which are
currently ignored: the name of the items that were removed from the
store, and the number of bytes freed.

Your mission, if you accept it, is to change gc.scm to retrieve this
second value and to display it in a human-friendly way.  :-)

HTH!

Ludo’.




This bug report was last modified 8 years and 310 days ago.

Previous Next


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