Re: [PATCH] utimensat implementation

Neil Brown
2007-04-27T01:58:17Z

On Thursday April 26, drepper@redhat.com wrote:
> The next revision of POSIX will support fine-grained filesystem
> timestamps the way we already support. struct stat will report
> nanosecond values. So far so good.

Does it also specify how to find out what granularity is used by the
filesystem? I had a need for this just recently and couldn't see any
way to extract it.

[If the mtime of a file matches the current time, then you cannot
cache the contents of the file. You have to wait until the mtime is
in the past. Without knowing the granularity, you cannot tell if the
mtime still matches current time or not]

Thanks,
NeilBrown