[PATCH] Consider nanoseconds when quick-checking for unchanged files

Wayne Davison wayned at samba.org
Thu Jan 21 07:04:20 UTC 2016

On Thu, Dec 25, 2014 at 2:48 AM, Ingo Br├╝ckl <ib at wupperonline.de> wrote:

> On systems using nanoseconds differences should be taken into
> consideration.

The problem is that if you transfer from a filesystem that has nanoseconds
to one that does not support it, rsync would consider most of the files to
be constantly different, since the nanosecond values would only match if
the source file happened to have 0 nanoseconds. So, the logic has to be
improved to somehow detect such a case and treat the truncated values as
equal. One possible improvement would be to skip the nanosecond check if
the destination file has a nanosecond value of 0.  That could possibly be
improved if we figure out if a particular device ID supports nanoseconds
somehow.  I have a potential heuristic in mind that I can code up and see
how it works.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20160120/3af364c9/attachment.html>

More information about the rsync mailing list