#583345 auto-detect timestamp resolution

Package:
rsync
Source:
rsync
Description:
fast, versatile, remote (and local) file-copying tool
Submitter:
martin f krafft
Date:
2015-12-30 15:39:04 UTC
Severity:
wishlist
#583345#5
Date:
2010-05-27 09:01:15 UTC
From:
To:
It should be possible to use the value of
pathconf("path/to/destination", _POSIX_TIMESTAMP_RESOLUTION) to
determine the minimum timestamp resolution and to set
--modify-window accordingly by default.

http://www.opengroup.org/onlinepubs/9699919799/functions/fpathconf.html

Unfortunately, this does not seem to exist in Debian. :(

Maybe in the mean time, rsync chould use statfs(3)'s f_fsid field
and set --modify-window to a default of 2 for FAT/VFAT destinations?
I realise this is a hack, but it'd be useful until
_POSIX_TIMESTAMP_RESOLUTION became available.

Thanks,

#583345#10
Date:
2015-12-30 15:15:05 UTC
From:
To:
The biggest problem with both solutions is that you would have to check
the filesystem / _POSIX_TIMESTAMP_RESOLUTION thing for every directory
you traverse, as there may be FAT filesystems on subdirectories or bind
mounts etc.; this may cause a hefty overhead.


Paul