[haiku-gsoc] Re: [hcd09] Assorted Questions About the Indexing Daemon

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-gsoc@xxxxxxxxxxxxx
  • Date: Tue, 16 Jun 2009 14:31:43 +0200 CEST

Ingo Weinhold <ingo_weinhold@xxxxxx> wrote:
> On 2009-06-16 at 11:03:17 [+0200], Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
> > wrote:
> > Ankur Sethi <get.me.ankur@xxxxxxxxx> wrote:
> > > 1. To what extent can timestamps on files be trusted? What
> > > happens
> > > when the user tinkers with the system time?
> > The only problem are time zone changes, as the time of the files is
> > not
> > absolute in BeOS or Haiku - they will change with the time zone,
> > probably also depending on your local/GMT setting.
> I wonder how other OSs do that. I would find it obvious for the FS to
> store
> a canonical time (i.e. GMT) on disk and convert from/to the current
> time
> zone as needed.

Indeed, this is how it should work. It just doesn't do so right now,
but we can and should change that.
I guess we could add a utility function for file systems that returns a
timespec/bigtime_t GMT time.

Bye,
   Axel.


Other related posts: