linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: Andrew Pimlott <andrew@pimlott.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Nanosecond resolution for stat(2)
Date: 24 Sep 2002 14:10:27 +0200	[thread overview]
Message-ID: <p731y7jtwp8.fsf@oldwotan.suse.de> (raw)
In-Reply-To: Andrew Pimlott's message of "24 Sep 2002 06:19:13 +0200"

Andrew Pimlott <andrew@pimlott.net> writes:
> 
> I assume you mean "theoretical" that an application would care, not
> that it would happen.  (Unless I misunderstand, it is nearly
> guaranteed to happen every time an inode is evicted after a
> [mac]time update.)

Only when you use an old file system. I tguess even ext2 and ext3 will
learn about nsec timestamps eventually (e.g. by increasing the inode to
the next power of two because there are many other contenders for new
inode fields too) 

> 
> I fear that there are applications that will be harmed by any
> spurious change in [mac]time, even if it's not backwards.  Apps that

When they only look at the second part nothing will change for them.

If applications that do look at nsecs have serious problems with this
backwards jumping it's still possible to add upwards rounding. I didn't
want to do this for the first cut to avoid over engineering.
> 
> > If it should be one in practice 
> > it could be fixed by rounding the time up in this case.
> 
> This would mean that even "legacy" programs that only use second
> resolution would be affected, which seems worse.  At least programs
> that recognize the nanosecond field are more likely to know about
> the issue.

Well, there is some change in behaviour. You have to live with that.

-Andi

       reply	other threads:[~2002-09-24 12:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20020923214836.GA8449@averell.suse.lists.linux.kernel>
     [not found] ` <20020924040528.GA22618@pimlott.net.suse.lists.linux.kernel>
2002-09-24 12:10   ` Andi Kleen [this message]
     [not found] ` <15759.62593.58936.153791@notabene.cse.unsw.edu.au.suse.lists.linux.kernel>
2002-09-24 12:21   ` Nanosecond resolution for stat(2) Andi Kleen
2002-09-23 21:48 Andi Kleen
2002-09-24  4:05 ` Andrew Pimlott
2002-09-24  4:35   ` Mark Mielke
2002-09-24  5:21     ` Andreas Dilger
2002-09-24  5:13 ` Neil Brown

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=p731y7jtwp8.fsf@oldwotan.suse.de \
    --to=ak@suse.de \
    --cc=andrew@pimlott.net \
    --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;
as well as URLs for NNTP newsgroup(s).