<jidanni <at> jidanni.org> writes: > JM> Don't blame Linux > JM> This is due to the FAT specification. > Different filesystems have different time granularities. Why draw an > artificial line above one second just because it is unfamiliar?
FAT is not a POSIX-compliant file system. POSIX requires file systems to have a granularity of 1 second or less. If anything, the conspiricy to wear out USB memory sticks faster is due to a rather poor industry decision to use such a stupid file system as the default. That said, a lot of the problem is that most existing OS's don't provide easy access to what the underlying granularity of the current file system is. The next version of POSIX is adding fpathconf(n,_PC_TIMESTAMP_RESOLUTION) to solve this problem, but it is not widely implemented yet. If excess wear on your non- compliant file system really bothers you that much, then consider submitting a patch that provides a replacement fpathconf for systems that don't yet implement _PC_TIMESTAMP_RESOLUTION, and which then teaches cp to use fpathconf to get the truncation right even with your 2-second resolution file system. -- Eric Blake _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils