Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4240022pxb; Mon, 4 Oct 2021 21:31:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeYMUOPPdDL4ZbE0zc2OOp6EoZxOPIHqrvW0VXInkPwfSA3D3+z9MXmqs5+CdwU2I8dVfE X-Received: by 2002:a62:1ac4:0:b0:44c:4c4e:1d3c with SMTP id a187-20020a621ac4000000b0044c4c4e1d3cmr13697812pfa.8.1633408290385; Mon, 04 Oct 2021 21:31:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633408290; cv=none; d=google.com; s=arc-20160816; b=YNS9Wox1phoJ9xp8KCl50WY0WiGXTUq5zgIaj0hiFZkFzb7kG0CSy8K2fxb40T6OlV WWFoCIeMOrfazK6Tu/+gE3rHK9GBb3bqBRuHySLpbnz+VoeSKBsXIKcNKB9dxUNDGzdv DfvjmpFsgiHFWIHkWkbEU/nbJ/6VE5lwVWTULB6Cw0M1uYucRIXbQkBbFUjyCiYhd46y W1hMJEHbmmd8hNs/yzJXXgcxTXX/ncXYLdtEW+OnQwLtLvRLZDVPYCoKZctz5/BRg+94 ZhMdMGzu/qHoxjEhxpkWvyI38Twul5jDr3x8EwGumnSADXMkE5eX3GOeEB5OlXXZrLV0 xioA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:references :in-reply-to:mime-version:dkim-signature; bh=jtKdMU4ht5/Ux3QTU7PqGVk0SwHTBrhWnbcPDNyUOtA=; b=b8H7L2ZBDluPwO+DycVh0A73JsGAYjPOHqCzTCkuYtdFV3W6JowfqQwCCqc2LlGVVO 0tJPOFCecrzWvuVVjMl8dTMOVXkfSec3gC8yty+pNfqP7Ms48Ir1LC5NMP7NTncNQNSK xkxCTmjWjTDa3FOLvxunmuoqPG0O7VuRkX9zdmDpDPe97zPl/vd/4uIOZ0nFFCQZ6iFk ECSGlcSHjgVkHHhKYbP+yY/4WBYRvlfM60iza+7pnS3eQv7v7o6Q9JeCETY1aq/b0Nfa 7TyNp+fDQlE0PUr6iWYxxSmgyLpa6iZFtW7wTWlQvJH+SYN2Ly7XYJ0wHMyW+1Ya09rU Q6MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Iguk8LBg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t21si22002859pfh.287.2021.10.04.21.31.17; Mon, 04 Oct 2021 21:31:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Iguk8LBg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229934AbhJEEcP (ORCPT + 99 others); Tue, 5 Oct 2021 00:32:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:35846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229659AbhJEEcP (ORCPT ); Tue, 5 Oct 2021 00:32:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3368D611C5; Tue, 5 Oct 2021 04:30:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633408225; bh=mwtLlNGveq30btzEOHDXQtBFRIVY1CXFp5WcbtYwSiA=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=Iguk8LBgCPt73EUPiPAtU5RnMaIgAdPFTSloae6afkaFqQNHxJ2TyvSj3r/AiLUPA OlM8p2S/NG+Xa3KBL2Tyvk07LB1TlVuEQqzrzsUF9ZTGHG58ebjW9OQBka6H6Y8zSv J4dKdTAvAy5Fc6vVoEsfgqdmYlxT8B60WQcX2xzfmcKeOh8mZk66bLI0xqI6ZfICEs eKJmlItq1fFrq8H1sTLfiEp8s0tRrNFYEyD7NoNYves6iIAwsdoU2OFp/rPCnnZaZA JwnOMwesCayRzoJLYLuVuRb6GoK+X2KsnqVcqlWhACg1D4YMUIXRVKnkHXvBMxP2i3 5kWVkUeheILaQ== Received: by mail-ot1-f51.google.com with SMTP id c6-20020a9d2786000000b005471981d559so24310449otb.5; Mon, 04 Oct 2021 21:30:25 -0700 (PDT) X-Gm-Message-State: AOAM5329LqoQE6/R+DVa3VPT0i1dJHyha4pY+xzKLucW2bERgCA10em7 brOMl/nWmD7OBiOQFE/T6ZI9V8Ep6vpbflOzEcw= X-Received: by 2002:a05:6830:1147:: with SMTP id x7mr12574781otq.18.1633408224429; Mon, 04 Oct 2021 21:30:24 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac9:31e7:0:0:0:0:0 with HTTP; Mon, 4 Oct 2021 21:30:23 -0700 (PDT) In-Reply-To: References: <20210909065543.164329-1-cccheng@synology.com> <997a01d7b6c6$ea0c3f50$be24bdf0$@samsung.com> From: Namjae Jeon Date: Tue, 5 Oct 2021 13:30:23 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] exfat: use local UTC offset when EXFAT_TZ_VALID isn't set To: Sungjong Seo Cc: Chung-Chiang Cheng , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, shepjeng@gmail.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2021-10-05 13:05 GMT+09:00, Sungjong Seo : >> 2021-10-01 22:19 GMT+09:00, Sungjong Seo : >> > Hello, Namjae, >> Hi Sungjong, >> > >> > I found an important difference between the code we first wrote and >> > the code that has changed since our initial patch review. This >> > difference seems to cause compatibility issues when reading saved >> timestamps without timezone. >> > (In our initial patch review, there were concerns about possible >> > compatibility issues.) I think the code that reads timestamps without >> > timezone should go back to the concept we wrote in the first place >> > like reported patch. >> Are you talking about using sys_tz? > Yes, exactly, a part like below. Have you read discussion about this before ? Let me know what I am missing something. > > +static inline int exfat_tz_offset(struct exfat_sb_info *sbi) { > + return (sbi->options.tz_set ? -sbi->options.time_offset : > + sys_tz.tz_minuteswest) * SECS_PER_MIN; } > + > >> >> > It could be an answer of another timestamp issue. >> What is another timestamp issue ? > > What I'm saying is "timestamp incompatibilities in exfat-fs" from Reiner > > I think it might be the same issue with this. Have you checked fuse-exfat patch he shared ? It was exfat timezone support. I am not sure how it is related to sys_tz... Thanks! > >> >> > >> > Could you please let me know what you think? >> > >> > Thanks. >> >> -----Original Message----- >> >> From: Namjae Jeon [mailto:linkinjeon@kernel.org] >> >> Sent: Friday, September 10, 2021 10:01 AM >> >> To: Chung-Chiang Cheng >> >> Cc: sj1557.seo@samsung.com; linux-fsdevel@vger.kernel.org; linux- >> >> kernel@vger.kernel.org; shepjeng@gmail.com >> >> Subject: Re: [PATCH] exfat: use local UTC offset when EXFAT_TZ_VALID >> >> isn't set >> >> >> >> 2021-09-09 15:55 GMT+09:00, Chung-Chiang Cheng : >> >> > EXFAT_TZ_VALID is corresponding to OffsetValid field in exfat >> >> > specification [1]. If this bit isn't set, timestamps should be >> >> > treated as having the same UTC offset as the current local time. >> >> > >> >> > This patch uses the existing mount option 'time_offset' as fat does. >> >> > If time_offset isn't set, local UTC offset in sys_tz will be used >> >> > as the default value. >> >> > >> >> > Link: [1] >> >> > https://protect2.fireeye.com/v1/url?k=cba4edf5-943fd4c8-cba566ba-0c >> >> > c47 >> >> > a31309a-e70aa065be678729&q=1&e=225feff2-841f-404c-9a2e-c12064b232d0 >> >> > &u= >> >> > https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Ffileio >> >> > %2F exfat-specification%2374102-offsetvalid-field >> >> > Signed-off-by: Chung-Chiang Cheng >> >> Please read this discussion: >> >> https://patchwork.kernel.org/project/linux- >> >> fsdevel/patch/20200115082447.19520-10-namjae.jeon@samsung.com/ >> >> >> >> Thanks! >> > >> > > >