Re: nanosecond file timestamp resolution in filesystems, GNU make, etc.

From: Andi Kleen (ak@suse.de)
Date: Mon Oct 28 2002 - 06:08:07 EST


Jamie Lokier <lk@tantalophile.demon.co.uk> writes:

> Unfortunately that application code breaks when the filesystem may
> have timestamps with resolution better than 1 second, but worse than 1
> nanosecond.

The current resolution is jiffies, which tends to be 1ms

 Then the application just can't do the right thing,
> unless it knows what rounding was applied by the kernel/filesystem, so
> it can change that rounding in a safe direction.

The rounding is always truncation. So the application can just assume
that.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Oct 31 2002 - 22:00:36 EST