pub struct Options {
pub trust_ctime: bool,
pub check_stat: bool,
pub use_nsec: bool,
pub use_stdev: bool,
}
Expand description
Configuration for comparing stat entries
Fields§
§trust_ctime: bool
If true, a files creation time is taken into consideration when checking if a file changed. Can be set to false in case other tools alter the creation time in ways that interfere with our operation.
Default true
.
check_stat: bool
If true, all stat fields will be used when checking for up-to-date’ness of the entry. Otherwise nano-second parts of mtime and ctime,uid, gid, inode and device number will not be used, leaving only the whole-second part of ctime and mtime and the file size to be checked.
Default true
.
use_nsec: bool
Whether to compare nano secs when comparing timestamps. This currently leads to many false positives on linux and is therefore disabled there.
Default false
use_stdev: bool
Whether to compare network devices secs when comparing timestamps. Disabled by default because this can cause many false positives on network devices where the device number is not stable
Default false
.