diff options
author | Chung-Chiang Cheng <cccheng@synology.com> | 2022-04-06 11:55:52 +0200 |
---|---|---|
committer | Namjae Jeon <linkinjeon@kernel.org> | 2022-05-23 04:17:29 +0200 |
commit | 9b002894b4c252169abc26720452bf3746114b20 (patch) | |
tree | 079800f257f77d6057d9d4b917159d6754a957eb /fs/exfat/exfat_fs.h | |
parent | exfat: fix referencing wrong parent directory information after renaming (diff) | |
download | linux-9b002894b4c252169abc26720452bf3746114b20.tar.xz linux-9b002894b4c252169abc26720452bf3746114b20.zip |
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>
Diffstat (limited to 'fs/exfat/exfat_fs.h')
-rw-r--r-- | fs/exfat/exfat_fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/exfat/exfat_fs.h b/fs/exfat/exfat_fs.h index c6800b880920..82e507413291 100644 --- a/fs/exfat/exfat_fs.h +++ b/fs/exfat/exfat_fs.h @@ -203,6 +203,7 @@ struct exfat_mount_options { /* on error: continue, panic, remount-ro */ enum exfat_error_mode errors; unsigned utf8:1, /* Use of UTF-8 character set */ + sys_tz:1, /* Use local timezone */ discard:1, /* Issue discard requests on deletions */ keep_last_dots:1; /* Keep trailing periods in paths */ int time_offset; /* Offset of timestamps from UTC (in minutes) */ |