exfat: introduce mount option 'sys_tz'
authorChung-Chiang Cheng <cccheng@synology.com>
Wed, 6 Apr 2022 09:55:52 +0000 (17:55 +0800)
committerNamjae Jeon <linkinjeon@kernel.org>
Mon, 23 May 2022 02:17:29 +0000 (11:17 +0900)
commit9b002894b4c252169abc26720452bf3746114b20
tree079800f257f77d6057d9d4b917159d6754a957eb
parentd8dad2588addd1d861ce19e7df3b702330f0c7e3
exfat: introduce mount option 'sys_tz'

EXFAT_TZ_VALID bit in {create,modify,access}_tz is corresponding to
OffsetValid field in exfat specification [1]. When this bit isn't
set, timestamps should be treated as having the same UTC offset as
the current local time.

Currently, there is an option 'time_offset' for users to specify the
UTC offset for this issue. This patch introduces a new mount option
'sys_tz' to use system timezone as time offset.

Link: [1] https://docs.microsoft.com/en-us/windows/win32/fileio/exfat-specification#74102-offsetvalid-field

Signed-off-by: Chung-Chiang Cheng <cccheng@synology.com>
Acked-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/exfat/exfat_fs.h
fs/exfat/misc.c
fs/exfat/super.c