Uses a smarter copy detection to avoid false positive.

Now a if the file has a zero nanosecond timestamp, it must
match the full pathname.
Also add the new -N option and an new undocumented test-nano
command to set randomly the nanosecond timestamp of files
that have it at zero.
This commit is contained in:
Andrea Mazzoleni 2014-05-15 23:45:51 +02:00
parent c840a3e287
commit de86307a27
13 changed files with 152 additions and 32 deletions

View file

@ -393,7 +393,7 @@ int file_utime(struct snapraid_file* file, int f)
ret = futimesat(f, 0, tv);
#else
#error No function available to set file timestamps
#error No function available to set file timestamps with sub-second precision
#endif
if (ret != 0) {