From: Ulrich Drepper <drepper@redhat.com>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: filesystem time stamp resolution
Date: Thu, 26 Feb 2009 15:18:04 -0800 [thread overview]
Message-ID: <49A7232C.6050808@redhat.com> (raw)
-----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-----
next reply other threads:[~2009-02-26 23:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-26 23:18 Ulrich Drepper [this message]
2009-02-26 23:54 ` filesystem time stamp resolution 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49A7232C.6050808@redhat.com \
--to=drepper@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.