From unknown Tue Jun 17 20:18:08 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#38468 <38468@debbugs.gnu.org> To: bug#38468 <38468@debbugs.gnu.org> Subject: Status: [PATCH] file-systems: Add support for 'strict-atime' and 'lazy-time' flags. Reply-To: bug#38468 <38468@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:18:08 +0000 retitle 38468 [PATCH] file-systems: Add support for 'strict-atime' and 'laz= y-time' flags. reassign 38468 guix-patches submitter 38468 Guillaume Le Vaillant severity 38468 normal tag 38468 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 03 04:31:49 2019 Received: (at submit) by debbugs.gnu.org; 3 Dec 2019 09:31:49 +0000 Received: from localhost ([127.0.0.1]:39281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ic4X7-0004MQ-Dy for submit@debbugs.gnu.org; Tue, 03 Dec 2019 04:31:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:55225) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ic4X5-0004MI-DD for submit@debbugs.gnu.org; Tue, 03 Dec 2019 04:31:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47128) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ic4X3-0005fN-KH for guix-patches@gnu.org; Tue, 03 Dec 2019 04:31:47 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_40,RCVD_IN_DNSWL_MED, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ic4X1-0006GV-SU for guix-patches@gnu.org; Tue, 03 Dec 2019 04:31:45 -0500 Received: from mout02.posteo.de ([185.67.36.66]:58043) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ic4X1-0006Cg-4W for guix-patches@gnu.org; Tue, 03 Dec 2019 04:31:43 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id EDE322400E6 for ; Tue, 3 Dec 2019 10:31:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1575365501; bh=XN6yLUNF3cQ9g3xkItacaNxqNydjCzn87ig+/4Y5hJc=; h=From:To:Cc:Subject:Date:From; b=doqrzJT92N7y70ciyBcpjqU8IFs3Mkh3tXnUCm65D7Vz/c3Mx60r73gI8nRjyIjwx ditq5g2qkHWwdTCldEpGNUcjCzk+d63LB44DAlsglr5xPNi1WbFKoVbnaPWznC36jE 4HQ4MRs3PvkK5O5lzfz8nGhDHLQ4wx5kI6NGqyEO3LientSnkxNIoN2dm7VEK0U576 5VCWiJudcNyLlaGcuYBoGBQQYn4K2WmOAS7km/vJn59cSRiCeznRGKajpK4qelsg29 p8DmmkV+CGtkjHKhLVzFNywMY/D8iL6PL//BraRTrWRENgEw88//8D07pv3aPghfyq eCnVcKG4KhuHQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 47RxZH4JbRz9rxM; Tue, 3 Dec 2019 10:31:32 +0100 (CET) From: Guillaume Le Vaillant To: guix-patches@gnu.org Subject: [PATCH] file-systems: Add support for 'strict-atime' and 'lazy-time' flags. Date: Tue, 3 Dec 2019 10:31:08 +0100 Message-Id: <20191203093108.10422-1-glv@posteo.net> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 185.67.36.66 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Guillaume Le Vaillant X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * guix/build/syscalls.scm (MS_LAZYTIME): New variable. * gnu/build/file-systems.scm (mount-flags->bit-mask): Add match rules for 'strict-atime' and 'lazy-time'. * doc/guix.texi (File Systems): Add 'strict-atime' and 'lazy-time' to the= list of supported flags. --- doc/guix.texi | 9 ++++++--- gnu/build/file-systems.scm | 5 +++++ guix/build/syscalls.scm | 3 +++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 2da1ecd64c..9b0677d775 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -11244,9 +11244,12 @@ corresponding device mapping established. This is a list of symbols denoting mount flags. Recognized flags include @code{read-only}, @code{bind-mount}, @code{no-dev} (disallow access to special files), @code{no-suid} (ignore setuid and setgid -bits), @code{no-atime} (do not update file access times), and @code{no-e= xec} -(disallow program execution). @xref{Mount-Unmount-Remount,,, libc, The = GNU C -Library Reference Manual}, for more information on these flags. +bits), @code{no-atime} (do not update file access times), +@code{strict-atime} (update file access time), @code{lazy-time} (only +update time on the in-memory version of the file inode), and +@code{no-exec} (disallow program execution). +@xref{Mount-Unmount-Remount,,, libc, The GNU C Library Reference +Manual}, for more information on these flags. =20 @item @code{options} (default: @code{#f}) This is either @code{#f}, or a string denoting mount options passed to t= he diff --git a/gnu/build/file-systems.scm b/gnu/build/file-systems.scm index cb90fa0907..13c44aa728 100644 --- a/gnu/build/file-systems.scm +++ b/gnu/build/file-systems.scm @@ -2,6 +2,7 @@ ;;; Copyright =C2=A9 2014, 2015, 2016, 2017, 2018 Ludovic Court=C3=A8s <= ludo@gnu.org> ;;; Copyright =C2=A9 2016, 2017 David Craven ;;; Copyright =C2=A9 2017 Mathieu Othacehe +;;; Copyright =C2=A9 2019 Guillaume Le Vaillant ;;; ;;; This file is part of GNU Guix. ;;; @@ -577,6 +578,10 @@ corresponds to the symbols listed in FLAGS." (logior MS_NOEXEC (loop rest))) (('no-atime rest ...) (logior MS_NOATIME (loop rest))) + (('strict-atime rest ...) + (logior MS_STRICTATIME (loop rest))) + (('lazy-time rest ...) + (logior MS_LAZYTIME (loop rest))) (() 0)))) =20 diff --git a/guix/build/syscalls.scm b/guix/build/syscalls.scm index ce7999b433..248d6761fc 100644 --- a/guix/build/syscalls.scm +++ b/guix/build/syscalls.scm @@ -3,6 +3,7 @@ ;;; Copyright =C2=A9 2015 David Thompson ;;; Copyright =C2=A9 2015 Mark H Weaver ;;; Copyright =C2=A9 2017 Mathieu Othacehe +;;; Copyright =C2=A9 2019 Guillaume Le Vaillant ;;; ;;; This file is part of GNU Guix. ;;; @@ -43,6 +44,7 @@ MS_BIND MS_MOVE MS_STRICTATIME + MS_LAZYTIME MNT_FORCE MNT_DETACH MNT_EXPIRE @@ -451,6 +453,7 @@ the returned procedure is called." (define MS_BIND 4096) (define MS_MOVE 8192) (define MS_STRICTATIME 16777216) +(define MS_LAZYTIME 33554432) =20 (define MNT_FORCE 1) (define MNT_DETACH 2) --=20 2.24.0 From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 06 19:01:31 2019 Received: (at 38468-done) by debbugs.gnu.org; 7 Dec 2019 00:01:31 +0000 Received: from localhost ([127.0.0.1]:47168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1idNXP-0004N0-Ll for submit@debbugs.gnu.org; Fri, 06 Dec 2019 19:01:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40039) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1idNXN-0004Mn-D1 for 38468-done@debbugs.gnu.org; Fri, 06 Dec 2019 19:01:30 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53772) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1idNXF-0007kH-5k; Fri, 06 Dec 2019 19:01:23 -0500 Received: from [102.78.176.9] (port=14498 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1idNX9-0003lq-JB; Fri, 06 Dec 2019 19:01:17 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Guillaume Le Vaillant Subject: Re: [bug#38468] [PATCH] file-systems: Add support for 'strict-atime' and 'lazy-time' flags. References: <20191203093108.10422-1-glv@posteo.net> Date: Sat, 07 Dec 2019 01:01:07 +0100 In-Reply-To: <20191203093108.10422-1-glv@posteo.net> (Guillaume Le Vaillant's message of "Tue, 3 Dec 2019 10:31:08 +0100") Message-ID: <87blsl80n0.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 38468-done Cc: 38468-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Guillaume, Guillaume Le Vaillant skribis: > * guix/build/syscalls.scm (MS_LAZYTIME): New variable. > * gnu/build/file-systems.scm (mount-flags->bit-mask): Add match rules for > 'strict-atime' and 'lazy-time'. > * doc/guix.texi (File Systems): Add 'strict-atime' and 'lazy-time' to the= list > of supported flags. Applied, thanks! Ludo=E2=80=99. From unknown Tue Jun 17 20:18:08 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 04 Jan 2020 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator