Skip to content

Fix bugeous crtime value on macOS#322

Merged
cberner merged 1 commit intocberner:masterfrom
FirelightFlagboy:fix-crtime-overflow
Nov 27, 2024
Merged

Fix bugeous crtime value on macOS#322
cberner merged 1 commit intocberner:masterfrom
FirelightFlagboy:fix-crtime-overflow

Conversation

@FirelightFlagboy
Copy link
Copy Markdown
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
Copy Markdown
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
@trombonehero
Copy link
Copy Markdown

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