From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roel Janssen Subject: Re: [PATCH] guix-daemon: Add option to disable garbage collection. Date: Tue, 03 Apr 2018 16:02:49 +0200 Message-ID: <87vad8o0av.fsf@gnu.org> References: <87a7uklht1.fsf@gnu.org> <87po3g9znv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3MWh-0003lt-AG for guix-devel@gnu.org; Tue, 03 Apr 2018 10:03:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f3MWX-0005SL-Vt for guix-devel@gnu.org; Tue, 03 Apr 2018 10:03:07 -0400 In-reply-to: <87po3g9znv.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 =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel Ludovic Courtès writes: > Hello Roel, > > Roel Janssen skribis: > >> 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. > > I suppose the use case is when guix-daemon runs on a machine and is > accessed over TCP/IP (with GUIX_DAEMON_SOCKET=guix://…) from other > machines, right? That's right. > In this case, I thought guix-daemon could explicitly check whether the > peer is remote, and disable GC in that case. That is, ‘guix gc’ would > still work locally on the machine that runs guix-daemon, but it would no > longer work remotely. > > How does that sound? That sounds like it solves our use-case, but only because in our case the access to the machine running guix-daemon is limited. So, even though I'm not sure how to implement this, your solution is fine with me. > > Thanks, > Ludo’. Thanks! Kind regards, Roel Janssen