[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] guix-daemon: Add option to disable garbage collection.
From: |
Roel Janssen |
Subject: |
[PATCH] guix-daemon: Add option to disable garbage collection. |
Date: |
Tue, 03 Apr 2018 12:12:42 +0200 |
User-agent: |
mu4e 1.0; emacs 25.3.1 |
Dear Guix,
I have an interesting situation where the guix-daemon cannot see all
directories that (may) contain Guix profiles, and therefore is not able
to judge whether a GC root is gone and can be collected, or whether it's
just inaccessible.
To be on the safe side, I'd like to disable garbage collection on this
system. To achieve this, I wrote the attached patch. Even though “it
works for me”, I don't think it's good to be added as-is. At least I
need to figure out how to make the error message “Garbage collection is
disabled.” translatable.
The patch adds a “disableGarbageCollection” boolean variable to the
guix-daemon settings, and on each occasion where a store item may be
deleted, it checks this option.
This option can be set using “--disable-gc”.
It would be great if someone could review this and discuss whether
this is the right way to implement such a feature. And to point out
what else would be needed to include this option in guix-daemon.
Thank you for your time.
Kind regards,
Roel Janssen
0001-guix-daemon-Add-option-to-disable-garbage-collection.patch
Description: Text Data
- [PATCH] guix-daemon: Add option to disable garbage collection.,
Roel Janssen <=
- Re: [PATCH] guix-daemon: Add option to disable garbage collection., Ludovic Courtès, 2018/04/03
- Re: [PATCH] guix-daemon: Add option to disable garbage collection., Roel Janssen, 2018/04/03
- Re: [PATCH] guix-daemon: Add option to disable garbage collection., Ludovic Courtès, 2018/04/19
- Re: [PATCH] guix-daemon: Add option to disable garbage collection., Roel Janssen, 2018/04/19
- Re: [PATCH] guix-daemon: Add option to disable garbage collection., Ludovic Courtès, 2018/04/19
- Re: [PATCH] guix-daemon: Add option to disable garbage collection., Roel Janssen, 2018/04/19
- Re: [PATCH] guix-daemon: Add option to disable garbage collection., Ludovic Courtès, 2018/04/19