int preserve_times = 0;
int preserve_atimes = 0;
int update_only = 0;
-int set_noatime = 0;
+int open_noatime = 0;
int cvs_exclude = 0;
int dry_run = 0;
int do_xfers = 1;
rprintf(F," -D same as --devices --specials\n");
rprintf(F," -t, --times preserve modification times\n");
rprintf(F," -U, --atimes preserve access (last-used) times\n");
- rprintf(F," --set-noatime avoid changing the atime on accessed files\n");
+ rprintf(F," --open-noatime avoid changing the atime on opened files\n");
rprintf(F," -O, --omit-dir-times omit directories from --times\n");
rprintf(F," -J, --omit-link-times omit symlinks from --times\n");
rprintf(F," --super receiver attempts super-user activities\n");
{"atimes", 'U', POPT_ARG_NONE, 0, 'U', 0, 0 },
{"no-atimes", 0, POPT_ARG_VAL, &preserve_atimes, 0, 0, 0 },
{"no-U", 0, POPT_ARG_VAL, &preserve_atimes, 0, 0, 0 },
- {"set-noatime", 0, POPT_ARG_VAL, &set_noatime, 1, 0, 0 },
- {"no-set-noatime", 0, POPT_ARG_VAL, &set_noatime, 0, 0, 0 },
+ {"open-noatime", 0, POPT_ARG_VAL, &open_noatime, 1, 0, 0 },
+ {"no-open-noatime", 0, POPT_ARG_VAL, &open_noatime, 0, 0, 0 },
{"omit-dir-times", 'O', POPT_ARG_VAL, &omit_dir_times, 1, 0, 0 },
{"no-omit-dir-times",0, POPT_ARG_VAL, &omit_dir_times, 0, 0, 0 },
{"no-O", 0, POPT_ARG_VAL, &omit_dir_times, 0, 0, 0 },
case 'U':
if (++preserve_atimes > 1)
- set_noatime = 1;
+ open_noatime = 1;
break;
case 'v':
if (preallocate_files && am_sender)
args[ac++] = "--preallocate";
- if (set_noatime && preserve_atimes <= 1)
- args[ac++] = "--set-noatime";
+ if (open_noatime && preserve_atimes <= 1)
+ args[ac++] = "--open-noatime";
if (ac > MAX_SERVER_ARGS) { /* Not possible... */
rprintf(FERROR, "argc overflow in server_options().\n");
-D same as --devices --specials
-t, --times preserve modification times
-U, --atimes preserve access (use) times
- --set-noatime avoid changing the atime on accessed files
+ --open-noatime avoid changing the atime on opened files
-O, --omit-dir-times omit directories from --times
-J, --omit-link-times omit symlinks from --times
--super receiver attempts super-user activities
dit(bf(-U, --atimes)) This tells rsync to set the access (use) times of the
destination files to the same value as the source files.
-If repeated, it also sets the bf(--set-noatime) option, which can help you
+If repeated, it also sets the bf(--open-noatime) option, which can help you
to make the sending and receiving systems have the same access times on the
transferred files without needing to run rsync an extra time after a file is
transferred.
Note that some older rsync versions (prior to 3.1.4) may have been built with
-a pre-release bf(--atimes) patch that does not imply bf(--set-noatime) when
+a pre-release bf(--atimes) patch that does not imply bf(--open-noatime) when
this option is repeated.
-dit(bf(--set-noatime)) This tells rsync to open files with the O_NOATIME
+dit(bf(--open-noatime)) This tells rsync to open files with the O_NOATIME
flag (on systems that support it) to avoid changing the access time of the
files that are being transferred. If your OS does not support the O_NOATIME
flag then rsync will silently ignore this option. Note also that some