diff --git a/src/common/mfu_flist_copy.c b/src/common/mfu_flist_copy.c index c7b3638c..8d209be7 100644 --- a/src/common/mfu_flist_copy.c +++ b/src/common/mfu_flist_copy.c @@ -3571,6 +3571,9 @@ mfu_copy_opts_t* mfu_copy_opts_new(void) /* By default, don't use O_NOATIME. */ opts->open_noatime = false; + /* By default, compare atime. */ + opts->ignore_atime = false; + /* By default, don't use sparse file. */ opts->sparse = false; diff --git a/src/common/mfu_param_path.h b/src/common/mfu_param_path.h index f6600463..ac9293cd 100644 --- a/src/common/mfu_param_path.h +++ b/src/common/mfu_param_path.h @@ -137,6 +137,7 @@ typedef struct { int no_dereference; /* if true, don't dereference source symbolic links */ bool direct; /* whether to use O_DIRECT */ bool open_noatime; /* whether to use O_NOATIME */ + bool ignore_atime; /* whether to compare and update atime differences */ bool sparse; /* whether to create sparse files */ size_t chunk_size; /* size to chunk files by */ size_t buf_size; /* buffer size to read/write to file system */ diff --git a/src/dsync/dsync.c b/src/dsync/dsync.c index 2b4276f4..24eba09e 100644 --- a/src/dsync/dsync.c +++ b/src/dsync/dsync.c @@ -76,6 +76,7 @@ static void print_usage(void) printf(" -P, --no-dereference - don't follow links in source\n"); printf(" -s, --direct - open files with O_DIRECT\n"); printf(" --open-noatime - open files with O_NOATIME\n"); + printf(" --ignore-atime - don't compare atime for metadata updates\n"); printf(" --link-dest