Skip to content

atime-on-use instead of mtime-on-use #17232

Description

@dcolascione

Problem

mtime is explicitly a modification time, updating it when nothing's actually changed can confuse backup tools, dependency analysis systems, file indexers, and so on.

Proposed Solution

atime is explicitly an access-time field. It doesn't signal modification so doesn't have the same side effects that updating mtime has. While many Linux systems disable or throttle atime updtes, atime can be updated explicitly updated using utimes() in the same circumstances mtime is updated.

Notes

I'd expect updating atime instead of mtime in this feature to be a trivial enhancement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rebuild-detectionArea: rebuild detection and fingerprintingC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-infoStatus: Needs more info, such as a reproduction or more background for a feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions