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 a network drive related bug in the new, fast FSCache #2044

Merged
merged 1 commit into from
Jan 29, 2019

Conversation

dscho
Copy link
Member

@dscho dscho commented Jan 29, 2019

It was reported in #1989 and #2022 that our new FSCache code (which is quite a bit faster than the old version, partially due to using a low-level API instead of a high-level API) caused regressions on network drives in combination with older Windows versions than Windows 10.

This PR fixes it by adjusting the buffer size to accommodate the limits on older Windows versions (and remember, if the server has an older version, this bug hits, too).

@dscho dscho added this to the v2.20.1(2) milestone Jan 29, 2019
@dscho dscho self-assigned this Jan 29, 2019
@dscho dscho requested a review from benpeart January 29, 2019 12:24
The NtQueryDirectoryFile() call works best (and on Windows 8.1 and
earlier, it works *only*) with buffer sizes up to 64kB. Which is 32k
wide characters, so let's use that as our buffer size.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho force-pushed the fscache-gfw branch 2 times, most recently from 7971adc to 32e6742 Compare January 29, 2019 13:32
Copy link

@benpeart benpeart left a comment

Choose a reason for hiding this comment

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

Looks great. Thanks Johannes!

@dscho dscho merged commit 9f16cdd into git-for-windows:master Jan 29, 2019
@dscho dscho deleted the fscache-gfw branch January 29, 2019 19:05
@dscho
Copy link
Member Author

dscho commented Jan 29, 2019

Sorry for not merging earlier, I wanted to merge git-for-windows/MINGW-packages#34 first so that its changes would be part of the next automatically built snapshot.

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.

2 participants