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

From: Andi Kleen (ak@suse.de)
Date: Mon Oct 28 2002 - 09:15:34 EST


> So I propose: add a field to struct stat indicating the resolution of
> the timestamps in it. It can go on the end.

It's impossible. There is no space left in struct stat64
And adding a new syscall just for that would be severe overkill.

But what you could do if you really wanted that: implement kernel POSIX
pathconf()/fpathconf() and implement it as a parameter to that.

kernel pathconf would be needed for some other reasons anyways, e.g. to return
proper max hard link counts (currently glibc hardcodes the parameters
for various fs in user space and it always breaks the LSB test suite
for new file systems). Ulrich Drepper could probably give you other
reasons on why it is needed if you ask him nicely.

I personally have no plans to implement it, however, because it looks like
kernel bloat to me :-)

-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