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

Andi Kleen (ak@suse.de)
28 Oct 2002 12:08:07 +0100


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/