Change default VFS timestamp precision?

Jilles Tjoelker jilles at stack.nl
Fri Dec 19 19:48:04 UTC 2014


On Fri, Dec 19, 2014 at 05:41:01PM +0000, Poul-Henning Kamp wrote:
> In message <7567696.mqJ3jgzJgL at ralph.baldwin.cx>, John Baldwin writes:

> >Yes, and multiplication is cheaper than division.  It's not a power of
> >two (so more than a single bitshift), but possibly in the noise compared
> >to the work in bintime() itself.

> But why not use nanosecond resolution given that the cost is cheaper ?

Because there is no API to set timestamps with nanosecond resolution,
and therefore a cp -p copy of a file will appear older than the original
with 99.9% probability. I think that is undesirable.

-- 
Jilles Tjoelker


More information about the freebsd-arch mailing list