public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Duncan <1i5t5.duncan@cox.net>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev]  Re: mtime preservation
Date: Thu, 26 Nov 2009 05:30:05 +0000 (UTC)	[thread overview]
Message-ID: <pan.2009.11.26.05.30.04@cox.net> (raw)
In-Reply-To: 20091126011427.GD23443@hrair

Brian Harring posted on Wed, 25 Nov 2009 17:14:27 -0800 as excerpted:

> On Wed, Nov 25, 2009 at 04:49:17PM -0800, Zac Medico wrote:
>> Ciaran McCreesh wrote:
>> > On Wed, 25 Nov 2009 23:59:45 +0100
>> > Ulrich Mueller <ulm@gentoo.org> wrote:
>> >> Real examples would be issues like bugs 83877 [1] or 263387 [2].
>> >> Nothing that could be easily dismissed or worked around. Both issues
>> >> are fixed with Portage since a long time.
>> > 
>> > Yes, those are examples of packages relying upon something that is
>> > undefined behaviour, and that behaves differently depending upon the
>> > Portage version you use.
>> > 
>> >> I don't know of any example where non-preservation of nanosecond
>> >> timestamps would cause problems.
>> > 
>> > Not non-preservation. Partial and inconsistent corruption.
>> 
>> Wouldn't "loss of precision" be a more accurate description? Of the
>> known packages which require timestamp preservation, do any of them use
>> sub-second precision in their timestamp comparisons?
> 
> This discussion in generall is daft.  No package can rely on nanonsecond
> resolution for installation because the most common FS out there (ext3)
> does *second* level resolution only.  As such, I can pretty much
> gurantee there is *zero* packages out there that require nanosecond
> resolution for installation.

One of the reasons I was asking for a bug number, was because there's two 
possible failure modes, and I was hoping reading them would clue me (or 
at least those who are making the decisions here) in on which one 
actually occurs.

Your posts suggest a mode where subsecond times are always truncated.  In 
such a case, there should be no issue.

But it's also possible that times are compared as-is.  If that's the 
case, then there should be no issue on second-resolution filesystems 
(such as ext3, in your example), because the filesystem would effectively 
truncate those, reducing to case-one, above.  But on higher resolution 
filesystems, there might very well be issues, due to the subtle double 
resolution issue Ciaran pointed out, especially when compared against 
renames where the mtimes were accurately preserved.

Now it could well be that it's possible to turn case two into case one by 
adding a simple option to the the command line or the like.  Or maybe 
not.  Again, that's why I wanted specific examples, so people could see 
if that were tried or not, and I would have to write all this up and 
possibly look like a moron if I'm getting it wrong, somehow.  But since 
the examples don't seem to be forthcoming, and in view of the IMO 
legitimate point about such bugs very possibly being closed as 
WORKSFORME, I guess I post this and hope someone can either explain that 
I have it all wrong, or say definitively that such command-line time 
truncation option workarounds are generally practical, or not, thus 
potentially affecting the direction of the debate.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman




  parent reply	other threads:[~2009-11-26  5:30 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <19184.25176.380022.392451@a1i15.kph.uni-mainz.de>
     [not found] ` <19186.42949.760878.199957@a1i15.kph.uni-mainz.de>
     [not found]   ` <20091108191439.3fcee79d@snowcone>
     [not found]     ` <7c612fc60911090718y144319f5lc9827a5e2e153c2@mail.gmail.com>
     [not found]       ` <20091109153429.502e272f@snowcone>
     [not found]         ` <19193.4389.637969.727075@a1i15.kph.uni-mainz.de>
     [not found]           ` <20091119221248.539eedd9@snowmobile>
     [not found]             ` <7c612fc60911191614h5e37c849y50ad217a828fa744@mail.gmail.com>
     [not found]               ` <20091120001820.7274bdf7@snowmobile>
     [not found]                 ` <4B07362D.2010108@gentoo.org>
2009-11-23 18:49                   ` [gentoo-dev] mtime preservation Denis Dupeyron
2009-11-23 20:39                     ` Zac Medico
2009-11-23 23:19                     ` Brian Harring
2009-11-24 14:26                       ` [gentoo-dev] " Duncan
2009-11-24 22:21                       ` [gentoo-dev] " Ciaran McCreesh
2009-11-26  1:28                         ` Brian Harring
2009-11-26 12:41                           ` David Leverton
2009-11-26 13:21                             ` Brian Harring
2009-11-26 18:22                               ` David Leverton
2009-11-26 15:15                           ` Ciaran McCreesh
2009-11-25 21:13                     ` [gentoo-dev] " Denis Dupeyron
2009-11-25 21:27                       ` Ciaran McCreesh
2009-11-25 21:52                         ` Duncan
2009-11-25 22:13                           ` Ciaran McCreesh
2009-11-25 22:59                             ` [gentoo-dev] " Ulrich Mueller
2009-11-26  0:15                               ` Ciaran McCreesh
2009-11-26  0:49                                 ` Zac Medico
2009-11-26  1:14                                   ` Brian Harring
2009-11-26  5:26                                     ` Zac Medico
2009-11-26  5:33                                       ` [gentoo-dev] " Duncan
2009-11-26  5:35                                       ` [gentoo-dev] " Brian Harring
2009-11-26  5:30                                     ` Duncan [this message]
2009-11-26 12:35                                     ` David Leverton
2009-11-26 12:40                                       ` [gentoo-dev] " Duncan
2009-11-26 21:55                                         ` Zac Medico
2009-11-26 13:31                                       ` [gentoo-dev] " Brian Harring
2009-11-26 15:24                                     ` Ciaran McCreesh
2009-11-26  7:59                                   ` Ulrich Mueller
2009-11-26  9:07                                     ` Ulrich Mueller
2009-11-26  9:54                                     ` Łukasz Michalik
2009-11-26 11:47                                       ` Ulrich Mueller
2009-11-26 15:27                                     ` Ciaran McCreesh
2009-11-26 15:21                                   ` Ciaran McCreesh
2009-11-26  7:51                                 ` Ulrich Mueller
2009-11-26  5:07                               ` [gentoo-dev] " Duncan
2009-11-26  5:04                             ` Duncan
2009-11-28 20:57                               ` Peter Hjalmarsson

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=pan.2009.11.26.05.30.04@cox.net \
    --to=1i5t5.duncan@cox.net \
    --cc=gentoo-dev@lists.gentoo.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