<jidanni <at> jidanni.org> writes:
>
> Fellas, in http://bugs.debian.org/276500
> m> There is a new syscall in 2.6.22, utimensat. It gets a "struct timespec"
> m> which allows nanosecond resolution.
> That means you can now fix the difference in
> $ touch m; touch -r m n; stat -c %y m n
> 2008-06-24 06:13:24.106160298 +0800
> 2008-06-24 06:13:24.106160000 +0800
>
You're behind the times (pardon the pun). Coreutils was already fixed to use
utimensat (when it works) as of 6.12. However, after the release, there was a
utimensat bug discovered for some kernel versions, so it may take current git
sources (or wait for 6.13) to work around those bugs.
--
Eric Blake