Linux-kernel mailing list archive 2000-07,: Re: Question about stat()

# Re: Question about stat()

Matti Aarnio (matti.aarnio@sonera.fi)
Sat, 19 Feb 2000 17:52:06 +0200

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Sandy Harris: "Re: Userland encrypted filesystem that root cannot access."
- Previous message: Michal Safranek: "ISDN mppp channel bundling problem"

On Sat, Feb 19, 2000 at 03:14:52PM +0000, Alex Buell wrote:
> I've been playing with stat() for a while. During my experiments I noticed
> that stat()'s st_atime, st_mtime and st_ctime seems to be accurate down to
> the nearest second.
>
> Is there any way I can get much more accuracy than that for files?

No.

See filesystems, some might support micro/nanosecond timers
too, but there are even ones which support 2sec granularity
(DOS FAT).

The VFS layer carries only time_t object for files, so even
if FS supplies finer granularity, you can't get it thru the
VFS..

> Cheers,
> Alex
> --

/Matti Aarnio <matti.aarnio@sonera.fi>

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

- Next message: Sandy Harris: "Re: Userland encrypted filesystem that root cannot access."
- Previous message: Michal Safranek: "ISDN mppp channel bundling problem"