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

Fix bugeous crtime value on macOS #322

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

FirelightFlagboy
Copy link
Contributor

During certain operation, macOS use some helper that send request to the mountpoint with crtime set to 0xffff83da4f80. That value correspond to -2_082_844_800u64 which is the difference between the date 1904-01-01 and 1970-01-01 because macOS epoch start at 1904 and not 1970.

macfuse/macfuse#1042

Fix #217

@FirelightFlagboy FirelightFlagboy marked this pull request as ready for review November 27, 2024 15:07
During certain operation, macOS use some helper that send request to the mountpoint with `crtime` set to `0xffff83da4f80`.
That value correspond to `-2_082_844_800u64` which is the difference between the date 1904-01-01 and 1970-01-01 because macOS epoch start at 1904 and not 1970.

<macfuse/macfuse#1042>

Fix cberner#217
@cberner cberner force-pushed the fix-crtime-overflow branch from d4dd675 to 767b925 Compare November 27, 2024 21:16
@cberner
Copy link
Owner

cberner commented Nov 27, 2024

Thanks for digging in and figuring out the root cause here!

@cberner cberner merged commit a2200c8 into cberner:master Nov 27, 2024
9 checks passed
@trombonehero
Copy link

Awesome!

@FirelightFlagboy FirelightFlagboy deleted the fix-crtime-overflow branch November 28, 2024 07:33
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.

SetAttr crtime error on macos
3 participants