From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +D5OKrQr31+yFgAA0tVLHw (envelope-from ) for ; Sun, 20 Dec 2020 10:47:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 6IspJrQr31+YVgAA1q6Kng (envelope-from ) for ; Sun, 20 Dec 2020 10:47:16 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2B5E69403A7 for ; Sun, 20 Dec 2020 10:47:16 +0000 (UTC) Received: from localhost ([::1]:59272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqwF9-0007FZ-4E for larch@yhetil.org; Sun, 20 Dec 2020 05:47:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49908) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqwEw-0007F2-AV for guix-patches@gnu.org; Sun, 20 Dec 2020 05:47:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60446) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqwEw-0002rC-3d for guix-patches@gnu.org; Sun, 20 Dec 2020 05:47:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kqwEv-0006OT-Vh for guix-patches@gnu.org; Sun, 20 Dec 2020 05:47:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45327] [PATCH] git: Periodically delete least-recently-used cached checkouts. Resent-From: Guillaume Le Vaillant Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 20 Dec 2020 10:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45327 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 45327-submit@debbugs.gnu.org id=B45327.160846121224559 (code B ref 45327); Sun, 20 Dec 2020 10:47:01 +0000 Received: (at 45327) by debbugs.gnu.org; 20 Dec 2020 10:46:52 +0000 Received: from localhost ([127.0.0.1]:43759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqwEl-0006O2-Re for submit@debbugs.gnu.org; Sun, 20 Dec 2020 05:46:52 -0500 Received: from mout02.posteo.de ([185.67.36.66]:51275) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqwEj-0006Np-Ai for 45327@debbugs.gnu.org; Sun, 20 Dec 2020 05:46:50 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 0F58B2400FF for <45327@debbugs.gnu.org>; Sun, 20 Dec 2020 11:46:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1608461203; bh=hgAGqq5Ux3iOk/3JECpocMbU9Cze7GjtVnnswfgpjog=; h=From:To:Cc:Subject:Date:From; b=gkbGzoXmVLEiBrwYd4QZ26IhKRJvkcfi40HXdhg5DI73ItqRAiNiGR05iMzatvdAi gfagb0MBNchh+IHsHj0L19EzJjDmZrwQ52zPEePU1Kx+OFo610U1ua3cAacuiSwmZ0 b+y5a6p3t5Y5ko59yGgGpCaYbyeBZ1fvpazHfPkKC5542sXMZKLoRcjrP7B1RUAnPY b7gmvxTL0stRRAYsIAFV3pD9H2xW2+dIjQIbOfoTddSCCOzg/1rr2xXf+VJFUvnNSw jSI6Y93gEfe/tvo0cJThuBqaAtVPzxUgku5Mo5Yf78Pxcs7s9T1Dfu3PH07rWuqkPC kFa9bM3ceFdLg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CzK686Jd3z9rxP; Sun, 20 Dec 2020 11:46:40 +0100 (CET) References: <20201219220630.24605-1-ludo@gnu.org> User-agent: mu4e 1.4.13; emacs 27.1 From: Guillaume Le Vaillant In-reply-to: <20201219220630.24605-1-ludo@gnu.org> Date: Sun, 20 Dec 2020 11:46:36 +0100 Message-ID: <87pn34n4ab.fsf@yamatai> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 45327@debbugs.gnu.org Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.81 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=posteo.net header.s=2017 header.b=gkbGzoXm; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 2B5E69403A7 X-Spam-Score: -2.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7q7Yz9CuFK7j --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s skribis: > Hi! > > I noticed that my ~/.cache/guix/checkouts directory had accumulated > a lot of cruft from channels, playing with =E2=80=98--with-branch=E2=80= =99 and such, > and that it would be nice to clean it up once in a while. > > This is what this patch does. It uses the (guix cache) default > strategy, which consists in deleting least-recently-used items by > looking at their atime. > > Thoughts? How does it behave when the cache is on a file system mounted with the 'noatime' option? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCX98rjA8cZ2x2QHBvc3Rl by5uZXQACgkQa+ggit8h/j9AiQD/Sxhqiead7d7oinH1G5Kz4LpLKWpZ1ZBcToqb Epjn8NsBAISRLoyuznD0wThB6QHJwbW9HJI3nYvBQ6I1CNChzv+4 =3Ed5 -----END PGP SIGNATURE----- --=-=-=--