[PATCH] Consider nanoseconds when quick-checking for unchanged files
Ingo Brückl
ib at wupperonline.de
Thu Dec 25 03:48:10 MST 2014
On systems using nanoseconds differences should be taken into consideration.
--- a/generator.c 2014-06-14 01:05:08.000000000 +0200
+++ b/generator.c 2014-12-25 11:19:54.000000000 +0100
@@ -588,7 +588,13 @@
if (ignore_times)
return 0;
- return cmp_time(st->st_mtime, file->modtime) == 0;
+ return cmp_time(st->st_mtime, file->modtime) == 0
+#ifdef ST_MTIME_NSEC
+ ? NSEC_BUMP(file) ? (uint32)st->ST_MTIME_NSEC == F_MOD_NSEC(file)
+ : 1
+ : 0
+#endif
+ ;
}
More information about the rsync
mailing list