Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove FAT-inspired DST workaround #1046

Merged
merged 2 commits into from
Oct 19, 2024

Conversation

gdt
Copy link
Collaborator

@gdt gdt commented Jun 10, 2024

In addition, clean up related dead code.

@gdt gdt marked this pull request as draft June 10, 2024 13:17
@gdt
Copy link
Collaborator Author

gdt commented Jun 10, 2024

Someone pointed out to me that the time check is also used for update detection, and that this will mean that people syncing to/from FAT will have a full scan/hash every time the timezone changes (DST or a zone change). Of course, a subset of these cases (changes that aren't 1h) result in rescans now.

@gdt gdt force-pushed the remove-fat-dst-workaround branch from 8d79fee to e855d52 Compare October 18, 2024 12:54
@gdt gdt marked this pull request as ready for review October 18, 2024 12:57
@gdt
Copy link
Collaborator Author

gdt commented Oct 18, 2024

I don't remember why this hasn't been merged alread, so I'm going to merge it in 24h. Overall I am increasingly unwilling to impose any negatives to accomodate platforms with problems, such as not having stable timestamps.

@gdt
Copy link
Collaborator Author

gdt commented Oct 18, 2024

My analysis is that the failing checks are CI infrastructure bugs, not problems in this PR.

edit: Checks pass, after fix to CI.

gdt added 2 commits October 18, 2024 11:33
This was introduced in adf68c9 in
2009.  The theory is that on Windows with FAT, filesystem times are in
an undetermined timezone (a design defect) and as DST happens, the
times of files already there change.  While this is true, ignoring an
hour change also ignores valid changes on filesystems that store times
correctly (in UTC, as the major example).

Ignoring an hour is not enough; if the host's timezone changes by 3
hours (or anything not 1), then times in FAT move by that amount.
It's also too much, in that the workaround ignores time changes on
filesystems with a stable time representation.

Therefore, remove the workaround, and anyone who is using FAT,
changing timezones, and syncing times (expected to be very few) can
propose how to deal with this in a way that doesn't adversely affect
others.

Fixes bcpierce00#72.
@gdt gdt force-pushed the remove-fat-dst-workaround branch from e855d52 to 666144b Compare October 18, 2024 15:33
@gdt gdt merged commit 409c2db into bcpierce00:master Oct 19, 2024
28 checks passed
@gdt gdt deleted the remove-fat-dst-workaround branch October 19, 2024 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant