Skip to content

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 <[email protected]>
@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