public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* filesystem time stamp resolution
@ 2009-02-26 23:18 Ulrich Drepper
  2009-02-26 23:54 ` Al Viro
  2009-02-27  8:48 ` Andi Kleen
  0 siblings, 2 replies; 7+ messages in thread
From: Ulrich Drepper @ 2009-02-26 23:18 UTC (permalink / raw)
  To: Linux Kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

How can code at userlevel (e.g., glibc) determine the resolution of the
a filesystem timestamp?

Boundary condition:

- - I cannot create or modify a file since the information must also
  be available for filesystems where the caller has no write permission

- - it has to work going forward (i.e., hardcoding information is no good
  idea)

One acceptable solution (for me) would be to have directories for the
filesystem types under /proc/fs (or /sys/fs) which show this
information.  E.g.:

  /proc/fs/ext4/timestamp-resolution

Measured in nano-seconds or so.

As a bonus have symlinks like

  /proc/fs/ef53 -> /proc/fs/ext4

(i.e., map the superblock magic number to a name.  But I can live with
this missing.)

As a second bonus any help for network filesystems would be good but.

Do I miss anything that is there already?

- --
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkmnIywACgkQ2ijCOnn/RHRSDgCfUep/fJohBr8kI+iuEFbanL5C
oXYAn03tnvPse68ewluvH5qrqJj02AEG
=W6ln
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-02-27 22:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-26 23:18 filesystem time stamp resolution Ulrich Drepper
2009-02-26 23:54 ` Al Viro
2009-02-26 23:57   ` Ulrich Drepper
2009-02-27  0:19     ` Christoph Hellwig
2009-02-27  8:48 ` Andi Kleen
2009-02-27 22:01   ` Ulrich Drepper
2009-02-27 22:23     ` Peter Staubach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox