Subject: Re: filesystem timezone
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 08/08/2002 18:11:26
On Thu, 8 Aug 2002, Jason R Thorpe wrote:
> On Fri, Aug 09, 2002 at 09:43:05AM +0900, itojun@iijlab.net wrote:
>
> > we're using GMT on RTC chip, as well as in-kernel clocks (struct timeval
> > time and such) when we use NetBSD. some filesystems (like flashmemory
> > removed from digital camera) have file timestamps in different timezone
> > (in my case, JST). so when i mount it with mount_msdos, i will see
> > file timestamps with 9 hours offset. i would like to see correct
> > timestamps.
> >
> > in what layer should we convert filesystem timezone? it should be
> > configurable, so i guess mount option makes the most sense.
> > (pardon me if i'm asking a dumb question, i'm not a filesystem/vm guy)
>
> I would say add an option for a "time offset" on a per-mount point basis,
> translated in the VFS layer.
Sounds good.
I think the only calls this covers are GETATTR and SETATTR. I think there
are few-enough consumers that they can deal w/ timezone offsets. And since
we only need to support it in terms of seconds (well minutes actually),
changing timestamps around won't be hard.
Take care,
Bill