Skip to main content

Module stamp

Module stamp 

Source
Expand description

Complete stat stamps and the settle rule for cross-run stat trust (ADR 0082).

A Stamp is a file’s device, inode, size, mode, mtime and ctime, both times with nanoseconds. A user program can set mtime but not ctime, and every write, rename onto the path, chmod or utimes advances ctime. A stamp may be trusted across runs only once its ctime is at least SETTLED older than the moment observation began (Stamp::settled): a later change then moves ctime past the recorded one even on a filesystem with a coarse clock. Unchanged-call replay and the daemon’s solver identity both use it.

Structs§

Stamp
A complete stat stamp: device, inode, size, mode, mtime and ctime with nanoseconds.

Constants§

SETTLED
How much older than the start of an observation a trusted ctime must be.