Gentoo Archives: gentoo-council

From: Zac Medico <zmedico@g.o>
To: Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>
Cc: Denis Dupeyron <calchan@g.o>, Ulrich Mueller <ulm@g.o>, gentoo-council@l.g.o
Subject: Re: [gentoo-council] mtime preservation
Date: Sat, 21 Nov 2009 02:01:44
In Reply to: Re: [gentoo-council] mtime preservation by Ciaran McCreesh
Ciaran McCreesh wrote:
> On Thu, 19 Nov 2009 17:14:20 -0700 > Denis Dupeyron <calchan@g.o> wrote: >> On Thu, Nov 19, 2009 at 3:12 PM, Ciaran McCreesh >> <ciaran.mccreesh@××××××××××.com> wrote: >>> I honestly don't think we should be going anywhere with this until >>> Portage is using a mechanism that guarantees correct sub-second >>> resolution preservation in all cases. >> Any idea, or even the beginning of one, of how to make that happen? > > My understanding is that someone with Python knowledge would have to > write an external C library that provides a replacement for stat and a > wrapper for either utimensat or futimens.
Alternatively, we could simply make portage spawn the mv binary whenever rename fails (it fails when the source and destination are on different devices). Although it's relatively slow, it should solve the problem. -- Thanks, Zac