From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9B51C33CB1 for ; Thu, 16 Jan 2020 10:23:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 95CC9207E0 for ; Thu, 16 Jan 2020 10:23:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726887AbgAPKXK (ORCPT ); Thu, 16 Jan 2020 05:23:10 -0500 Received: from verein.lst.de ([213.95.11.211]:55239 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726220AbgAPKXK (ORCPT ); Thu, 16 Jan 2020 05:23:10 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 860F468B20; Thu, 16 Jan 2020 11:23:07 +0100 (CET) Date: Thu, 16 Jan 2020 11:23:07 +0100 From: Christoph Hellwig To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Arnd Bergmann , Namjae Jeon , Namjae Jeon , "linux-kernel@vger.kernel.org" , Linux FS-devel Mailing List , gregkh , Valdis Kletnieks , Christoph Hellwig , sj1557.seo@samsung.com Subject: Re: [PATCH v10 09/14] exfat: add misc operations Message-ID: <20200116102307.GA16662@lst.de> References: <20200115082447.19520-10-namjae.jeon@samsung.com> <20200115133838.q33p5riihsinp6c4@pali> <20200115142428.ugsp3binf2vuiarq@pali> <20200115153943.qw35ya37ws6ftlnt@pali> <20200116101947.4szdyfwpyasv5vpe@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200116101947.4szdyfwpyasv5vpe@pali> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 16, 2020 at 11:19:47AM +0100, Pali Rohár wrote: > However, implementations should only record the value 00h for this > field when: > > 1. Local date and time are actually the same as UTC, in which case > the value of the OffsetValid field shall be 1 > > 2. Local date and time are not known, in which case the value of the > OffsetValid field shall be 1 and implementations shall consider > UTC to be local date and time Given time zones in Linux are per session I think our situation is somewhat similar to 2. > > Here I would just convert to UTC, which is what we store in the > > in-memory struct inode anyway. > > Ok. If inode timestamp is always in UTC, we should do same thing also > for exFAT. > Hm... both UTC and sys_tz have positives and negatives. And I'm not > sure which option is better. The one big argument for always UTC is simplicity. Always using UTC kills some arcane an unusual (for Linux file systems) code, and given how exfat implementations deal with the time zone on reading should always interoperate fine with other implementations.