public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jamie Lokier <jamie@shareable.org>
To: Paul Eggert <eggert@CS.UCLA.EDU>
Cc: Andi Kleen <ak@suse.de>,
	linux-kernel@vger.kernel.org, bug-coreutils@gnu.org
Subject: Re: Linux 2.6 nanosecond time stamp weirdness breaks GCC build
Date: Fri, 2 Apr 2004 22:07:22 +0100	[thread overview]
Message-ID: <20040402210722.GE653@mail.shareable.org> (raw)
In-Reply-To: <87ad1uw1m2.fsf@penguin.cs.ucla.edu>

Paul Eggert wrote:
> Jamie Lokier <jamie@shareable.org> writes:
> > The only thing I don't like is that some cacheing algorithms will need
> > to make 2 system calls for each file being checked, instead of 1.
> 
> Do you mean for mtime versus atime (versus ctime)?  Yes, in that case
> getxattr etc. would be a better choice.

No, I mean that they currently call fstat().  In future they'd need to
call fstat()+getxattr().

If it's a per-filesystem quantity, then of course fstat() is all they
need.  So that would be great.

> Coreutils CVS assumes that the time stamp resolution is the same for
> all files within the same file system.  Is this a safe assumption
> under Linux?  I now worry that some NFS implementations might violate
> that assumption, if a remote host is exporting several native file
> systems, with different native resolutions, to the local host under a
> single mount point.  On the other hand, NFSv3 and NFSv4 clearly state
> that the time stamp resolution is a per-filesystem concept, so perhaps
> we should just consider that to be a buggy NFS server configuration.

Buugy, perhaps, but quite useful sometimes.  It's not a problem, if
we're clear that it's a per-filesystem quantity.  That kind of NFS
server configuration can advertise the coarsest timestamp resolution
of all the underlying filesystems.

NFS is not the only remote filesystem, and some like Samba can
certainly span multiple underlying filesystems without violating any
specificaiton.

With that in mind, we'd need to be clear that the resolution actually
stored may exceed the resolution advertised.  I don't know whether
that breaks coreutils' assumption.

-- Jamie

  reply	other threads:[~2004-04-02 21:07 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-01 19:28 Linux 2.6 nanosecond time stamp weirdness breaks GCC build Ulrich Weigand
2004-04-01 20:09 ` Andi Kleen
2004-04-01 20:39   ` Daniel Jacobowitz
2004-04-01 20:46     ` Andi Kleen
2004-04-01 21:01       ` Ulrich Weigand
2004-04-01 21:44         ` Andi Kleen
2004-04-01 22:39     ` Joe Buck
2004-04-01 22:44       ` Paul Jarc
2004-04-01 22:48       ` Ulrich Weigand
2004-04-01 23:58         ` Joe Buck
2004-04-02  0:13           ` Daniel Jacobowitz
2004-04-02  0:02   ` Jamie Lokier
2004-04-02  0:35   ` Paul Eggert
2004-04-02  1:14     ` Jamie Lokier
2004-04-02  7:57       ` James H. Cloos Jr.
2004-04-02  9:22       ` Paul Eggert
2004-04-02 16:23         ` Jamie Lokier
2004-04-02 20:45           ` Paul Eggert
2004-04-02 21:07             ` Jamie Lokier [this message]
2004-04-02 21:56               ` Paul Eggert
2004-04-03  4:59       ` Andrew Pimlott
2004-04-02  0:37   ` Andrew Morton
2004-06-07 16:03     ` Jörn Engel
2004-04-01 21:13 ` Janis Johnson
2004-04-01 21:41   ` Ulrich Weigand
2004-04-02  0:30   ` Alan Modra
2004-04-02  9:05 ` P
2004-04-02 17:27 ` Alexandre Oliva
  -- strict thread matches above, loose matches on Subject: below --
2004-04-01 20:51 Michael Elizabeth Chastain

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=20040402210722.GE653@mail.shareable.org \
    --to=jamie@shareable.org \
    --cc=ak@suse.de \
    --cc=bug-coreutils@gnu.org \
    --cc=eggert@CS.UCLA.EDU \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox