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

Cache file size mismatch on NTFS #1354

Open
nkr0 opened this issue Nov 14, 2023 · 0 comments
Open

Cache file size mismatch on NTFS #1354

nkr0 opened this issue Nov 14, 2023 · 0 comments
Labels
bug Does not work as intended/documented help wanted The ccache maintainers need your help os: windows Related to building or running on Windows

Comments

@nkr0
Copy link

nkr0 commented Nov 14, 2023

This is quite similar to issue #1332 except that the file system in this case is NTFS.

How to reproduce

Install ccache and compile on windows with NTFS file system. ccache -sx should show roughly the same value for Cache size and Total data and cleanup when Cache size exceeds limit.

Actual behavior

Unlike #1332 , Cache size shows a non-zero value. But still much less than Total data. Checking properties of the folder, Total data seems to be more accurate. Cache is not cleaned because Cache size is less than max limit.
ccache-windows

Expected behavior

Both values match on linux and cleanup keeps cache size under limit.
ccache-linux

Environment

ccache version 4.8.3 with msvc 2019 on windows
ccache version 4.5.1 with gcc 11 on linux

@nkr0 nkr0 added the bug Does not work as intended/documented label Nov 14, 2023
@jrosdahl jrosdahl added the os: windows Related to building or running on Windows label Nov 25, 2023
@jrosdahl jrosdahl changed the title Cache file size mismatch Cache file size mismatch on NTFS Nov 25, 2023
@jrosdahl jrosdahl added the help wanted The ccache maintainers need your help label Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Does not work as intended/documented help wanted The ccache maintainers need your help os: windows Related to building or running on Windows
Projects
None yet
Development

No branches or pull requests

2 participants