Re: [PATCH] exfat: use local UTC offset when EXFAT_TZ_VALID isn't set

From: Namjae Jeon
Date: Thu Sep 09 2021 - 21:06:47 EST


2021-09-09 15:55 GMT+09:00, Chung-Chiang Cheng <cccheng@xxxxxxxxxxxx>:
> 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://docs.microsoft.com/en-us/windows/win32/fileio/exfat-specification#74102-offsetvalid-field
> Signed-off-by: Chung-Chiang Cheng <cccheng@xxxxxxxxxxxx>
Please read this discussion:
https://patchwork.kernel.org/project/linux-fsdevel/patch/20200115082447.19520-10-namjae.jeon@xxxxxxxxxxx/

Thanks!