Change default VFS timestamp precision?
Poul-Henning Kamp
phk at phk.freebsd.dk
Fri Dec 19 19:49:32 UTC 2014
--------
In message <20141219194800.GA29107 at stack.nl>, Jilles Tjoelker writes:
>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.
Hmm, good point, I forgot about that screwup...
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the freebsd-arch
mailing list