#1013728 mount: exfat filesystem mtime's are wrong

Package:
src:linux
Source:
linux
Submitter:
David Christensen
Date:
2022-07-01 20:30:03 UTC
Severity:
normal
Tags:
#1013728#5
Date:
2022-06-24 23:56:12 UTC
From:
To:
#1013728#10
Date:
2022-07-01 20:19:39 UTC
From:
To:
Hi,

Thanks for the report. ideally you fill in all the detail in the
bugreport without that we have to jump from one to the other ;-)

That said, I assume you use the exfat driver from the kernel. For that
see the recently commited:

https://git.kernel.org/linus/9b002894b4c252169abc26720452bf3746114b20

Is this applying to you? That is until you can ue sys_tz option with
5.19-rc1 and later, setting time_offset can help.

Regards,
Salvatore

#1013728#17
Date:
2022-07-01 20:27:39 UTC
From:
To:
[...]

This is not a general problem with exFAT.  Although exFAT timestamps
are usually in local time, they are accompanied by the current offset
from UTC.  Unfortunately, the offset is optional information.

You can use the "time_offset=N" mount option to specify the offset for
timestamps where there isn't a valid offset stored in the filesystem.
You should use time_offset=-480 or -420, depending on whether DST was
in effect.

Starting from 5.19, there is also a "sys_tz" mount option, which should
usually do the right thing.

Ben.