Skip to content

Don't truncate inode on Windows - #412

Merged
TheOneRing merged 1 commit into
mainfrom
work/inode
Jul 24, 2025
Merged

TheOneRing merged 1 commit into
mainfrom
work/inode

Conversation

@TheOneRing

@TheOneRing TheOneRing commented Jul 24, 2025 •

Copy link
Copy Markdown
Contributor

The inode will be updated locally, as the content didn't change we won't trigger an upload, just a CSYNC_INSTRUCTION_UPDATE_METADATA .
Move detection isn't affected as it was broke for years anyhow see #397

Fixes: #396

@TheOneRing
TheOneRing enabled auto-merge (rebase) July 24, 2025 09:47
@TheOneRing
TheOneRing requested a review from Copilot July 24, 2025 09:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue where the inode value was being unnecessarily truncated on Windows systems. The change prevents truncation of the file index information, allowing the full inode value to be preserved locally and triggering proper metadata updates without affecting file content synchronization.

  • Removes bitwise AND operation that was truncating the upper 16 bits of the inode value
  • Preserves full 64-bit inode information from Windows file system APIs

Comment thread src/libsync/discoveryinfo.cpp Resolved
@TheOneRing
TheOneRing merged commit 6140c00 into main Jul 24, 2025
@TheOneRing
TheOneRing deleted the work/inode branch July 24, 2025 09:49
@openclouders openclouders mentioned this pull request Jul 24, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows: FileID is truncated

2 participants