From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KOXMJTZYkmIpdgAAbAwnHQ (envelope-from ) for ; Sat, 28 May 2022 19:13:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WMemJTZYkmL4bgAAauVa8A (envelope-from ) for ; Sat, 28 May 2022 19:13:26 +0200 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 0DFAD10102 for ; Sat, 28 May 2022 19:13:26 +0200 (CEST) Received: from localhost ([::1]:54196 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nv00C-0001w0-FT for larch@yhetil.org; Sat, 28 May 2022 13:13:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuzzq-0001vm-Oj for bug-guix@gnu.org; Sat, 28 May 2022 13:13:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44914) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuzzq-0001OB-FJ for bug-guix@gnu.org; Sat, 28 May 2022 13:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nuzzq-0001xr-9w for bug-guix@gnu.org; Sat, 28 May 2022 13:13:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#55638: time-machine: backtrace about maybe-remove-expired-cache-entries Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 28 May 2022 17:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55638 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxime Devos Cc: 55638@debbugs.gnu.org, zimoun Received: via spool by 55638-submit@debbugs.gnu.org id=B55638.16537579527513 (code B ref 55638); Sat, 28 May 2022 17:13:02 +0000 Received: (at 55638) by debbugs.gnu.org; 28 May 2022 17:12:32 +0000 Received: from localhost ([127.0.0.1]:38811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuzzL-0001x7-QF for submit@debbugs.gnu.org; Sat, 28 May 2022 13:12:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48066) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuzzJ-0001wu-Mq for 55638@debbugs.gnu.org; Sat, 28 May 2022 13:12:30 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59722) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuzzD-0001M4-GP; Sat, 28 May 2022 13:12:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=ZD5M8q53c/UscYwwz60iinT9/sTZIl5h1S6mfVc3z3Y=; b=b39kKYTW3gI3f2DMjqum C4/g+ryRl7mSt8M1vtopz1gcVpS3eZIxje/F0p6dIO+fifnh8Q0WjtJ/nDWaZsqtemETGQNj3r7Hi 7axqjIdra2+U6I4KNd7nZ8P2XDhUpVxwVIYLDYCtv2JkadDdSl2DOAWAMtlQCkkxtZysrTG3iGumk NcXVr6dfjpUIXBlRvfETLP7c/WoXfbrWQGpwI3ZSvtXNeI1NBkj1uY5NRFMRqeBvQ3NT5hsd4BNiG V+bZ7rNY5NpOyfc9VzqDVi6jOefVDn/7TKAN/QLfGnYZoQVuWdvFLxr5oRB5sjeSBQBPCtwvAXQ1j xB89uPoLViInSA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:53900 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuzzC-0000Vf-Dm; Sat, 28 May 2022 13:12:23 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87leupd0bq.fsf@gmail.com> <871qwgfi6k.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 9 Prairial an 230 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 28 May 2022 19:12:19 +0200 In-Reply-To: (Maxime Devos's message of "Thu, 26 May 2022 17:12:18 +0200") Message-ID: <87leulbmz0.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653758006; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ZD5M8q53c/UscYwwz60iinT9/sTZIl5h1S6mfVc3z3Y=; b=JRkTDkT8ekvX+SeOHOlIjRt2nQx67J5PRRHHj0fnDGeyhd6W/SesQQILlxAhmJr0gD/d7/ XVlVrAlLc+QeHba63QHdmJyV7XRSzoppROaDfM/Hl+aoxA2gxWel65l9GQZhL/M9CkY2+z JOITsUaTbFhap1673EtqlPRPH8/1IPsnMFeEwGAXjAHF6mSYC8+TmR3nte3N0+xxl1pEfc SfaebCmvE3qzYv8WB8ZbtyDYQ/u6kgJE40bLhTWpSAis1PyQVevJ5kqvH8hDXubgosTtcv w9G9OcYm+hr3+QXsxLfpncL+h11AjmXiAt+Q1MWKcaW0bcGU7i223woalWXNLw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653758006; a=rsa-sha256; cv=none; b=tE1Qr30xcNj85UIut81QxlxWOQrelzN9btQjdhywbryd+jHW0hVlDTUODmo/QBVRgC31Fm mBF0cfaMuhV+XnmCNfFxo6wucCBtbKeZy0vJiPfjwUPKg/vfO4RcrCUm+VdRm35dsx8N67 xjDMdurF8gEmUvsVMenVztTQqO7AZw06PyIJvZCC0q7I84ZOHFJ/EF77BEuJBDgPnnIpCA mYT02NmYBq4AqdOmrofYZgzTFjxtMDoV+F1P4P1gHSdqIWPDiRsCPUo7wRTZDWrwB2Ouef bdytVPQ/Z28frCdKDV0lxrYtRuJX1yGzNQ4v8MYP3H7IU0rPTVM7gE3lQAjhWA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=b39kKYTW; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.94 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=b39kKYTW; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0DFAD10102 X-Spam-Score: -3.94 X-Migadu-Scanner: scn1.migadu.com X-TUID: rS/TTOng5Eb2 Hi, Maxime Devos skribis: > It's a work-around, but there's still an underlying problem:=20 > guix/cache.scm doesn't do 'fsync+rename', so the file is not created > atomically, so in case of an abrupt shutdown or C-c at the wrong time, > the file becomes corrupted without fault of the file system. Right, I guess this is what we should fix first, by using =E2=80=98with-atomic-file-output=E2=80=99 for instance. > As such, WDYT of making last-expiry-date more robust, by treating > invalid contents as time=3D0 or something like that? That too. Ludo=E2=80=99.