filesystem time stamp resolution
From: Ulrich Drepper
Date: Thu Feb 26 2009 - 18:18:26 EST
-----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-----
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/