Skip to content

Bugfix/inode cache windows index truncation - #1828

Open
aTom3333 wants to merge 3 commits into
ccache:masterfrom
aTom3333:bugfix/inode_cache_windows_index_truncation
Open

aTom3333 wants to merge 3 commits into
ccache:masterfrom
aTom3333:bugfix/inode_cache_windows_index_truncation

Conversation

@aTom3333

@aTom3333 aTom3333 commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Fix #1827

I split the PR in multiple commits. The first one in the minimal fix, it uses the ino_t from DirEntry which is 64bits instead of the one from the Windows headers which is 16bits in the inode cache key. (And the the same for dev_tand off_t).

The second commit makes use of the full 128bits file ID as I mentioned in the issue is recommended by the documentation. It required bumping the Windows version (from Vista to Windows 8) and changing the type of ino_t to be an array. If those change risk hurting compatibility, fell free to drop this commit, only the 64bits fix would already be better than status quo.

The third commit is completely unrelated, just a fix to an assert I encountered during dev, fell free to drop.

@aTom3333
aTom3333 force-pushed the bugfix/inode_cache_windows_index_truncation branch from c3c4be7 to 036a1e3 Compare October 3, 2026 13:23
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.

False positive with inode_cache on Windows

1 participant