From nobody Mon Jan 08 23:01:30 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T88gv2NCdz575rR for ; Mon, 8 Jan 2024 23:01:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T88gt2H2Vz40Qf for ; Mon, 8 Jan 2024 23:01:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704754890; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=04czdzcCCm1JFZAqXlNycT9jWvIaSuDDegQErjIoG2Y=; b=tz8edvLRLZHn+fK9JF1LVCK1zoHo7DA077Lkw3JlkqepNIFuTZn45zv4rM6uy91HycvsV9 bNMDYBH73U2/5BUbYBGHul/7Au0PD3iqPmhXJydciFSmTibt//QveMvIQTqrgDhFi1zsMC svul3ybt7rqA3UoNBvqsJLu+EvVJHLc5XebA1qyKwEyTr4mw5VUSFbEyfjMESpEAWO75d7 AHLbhNp2IvzXdEb412r0ZODVKZD9jKTYTrkc2fa+jPcEPs57FGjkDKqY1iay3+18MQzRgG SypBFZXRPJgacQNlvOVT6hlwiAk8ToHFX3VghXFJUpvyG6DcYjeGN52ViGuLIg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704754890; a=rsa-sha256; cv=none; b=IFH3kDbfIe0gRdhmbGyc7sBPk7gG71dq55V4jZVUIq11cCkWA4YPtJUO8+qLx20JmXVah/ RCwN+gMvahvRQXplz4++dqsjhq2JXHJwrKztf59muBmbFJak5g6tdG4JwfelgGeNmisey/ CO8GxLaxiiWfDnMkS9gFePhmPJj6047V5eUpZBrDSaaevLByqMlKTu8F1YyDylmo7YwBBw 6+qKhoY+54iLg6izm5OOF5/6pX6ih+SdZkGc7ybijkQK5bfOMmVlagUFtDW6va/YHdMuI7 PBcElS4AzSfSg76R0pLj/uZkF9SnTM2Er550ebdEmgHoQu1Bpice5TPpYzyoRA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4T88gt1LqlzR7Q for ; Mon, 8 Jan 2024 23:01:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 408N1UKk066178 for ; Mon, 8 Jan 2024 23:01:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 408N1U45066151 for bugs@FreeBSD.org; Mon, 8 Jan 2024 23:01:30 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 276209] Implement relative atime ("relatime") mount option Date: Mon, 08 Jan 2024 23:01:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: delphij@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276209 Bug ID: 276209 Summary: Implement relative atime ("relatime") mount option Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: delphij@FreeBSD.org Creating a bug so this is not forgotten. Linux kernel has a feature called "relative atime", which changes atime upd= ate behavior to only perform the update when: - Current atime is older than either of mtime or ctime, or - Current atime is older than a day. This behavior is made default on Linux since 2.6.30. The following needs to be done: 1. Create a new mount flag, MNT_RELATIME (sys/sys/mount.h) and adjust sys/kern/vfs_mount.c so that: - When none of [no]atime, relatime are present, MNT_RELATIME is set; - Otherwise, [no]atime resets MNT_RELATIME and set MNT_NOATIME accordingl= y; - "norelatime" alone means "atime". 2. statfs(2) and mount(8) are updated to reflect MNT_RELATIME flag, add sup= port for the new flag. 3. Extend existing file systems to support this feature. The following filesystems supports MNT_NOATIME and should be extended: ZFS, ext2fs, fuse, msdosfs, ufs. 4. Linux compatibility layer: compat/linprocfs/linprocfs.c, compat/linux/linux_stats.c should be extended to support the new flag. --=20 You are receiving this mail because: You are the assignee for the bug.=