Repository navigation
lib/fs: Use generic case resolver on windows (fixes #6968) - #6969
Merged
Merged
Conversation
calmh
reviewed
Sep 8, 2020
| default: | ||
| caseFs.realCaser = newDefaultRealCaser(fs) | ||
| } | ||
| caseFs.realCaser = newDefaultRealCaser(fs) |
Member
Author
There was a problem hiding this comment.
I was thinking it wouldn't hurt to keep it as a separate interface (as it's already done), in case any future filesystem wants to implement their own thing (or for mocking in testing).
Or do you mean keep the separate object, and just do the initialisation here?
Member
There was a problem hiding this comment.
I just mean
caseFs := &caseFilesystem{
Filesystem: fs,
realCaser: newDefaultRealCaser(fs),
}
Member
Author
There was a problem hiding this comment.
... got it now. Is there a nice English saying equivalent to the German "Tomaten auf den Augen haben" (probably not having tomatoes on your eyes). Or a Swedish one? :D
Member
There was a problem hiding this comment.
Not that I know of :D There's "har du knäck i lurarna" for the hearing equivalent... (Translation doesn't do it justice.)
calmh
approved these changes
Sep 8, 2020
calmh
added a commit
to calmh/syncthing
that referenced
this pull request
Sep 24, 2020
* main: (50 commits) cmd/ursrv: Properly sort versions (fixes syncthing#6991) cmd/ursrv: Recognize new-style dev versions gui, man, authors: Update docs, translations, and contributors build: Dockerfile that expects ready baked binaries lib/model: Consider case conflicts when checking to be deleted items (syncthing#6986) lib/fs: Optimize UnicodeLowercase (syncthing#6979) lib/db, lib/syncthing: Don't repair DB on upgrade, but on error (fixes syncthing#6917) (syncthing#6971) lib/model: Consider existing file when handling symlink on windows (syncthing#6977) lib/model: Handle symlink deletion on windows (fixes syncthing#6972) (syncthing#6976) lib/model: Fix case-only renames on pull (syncthing#6978) lib/fs: More efficient casefs cache (syncthing#6974) lib/model: Don't fail over case-conflict on tempfile (fixes syncthing#6973) (syncthing#6975) gui, man, authors: Update docs, translations, and contributors lib/fs: Use generic case resolver on windows (fixes syncthing#6968) (syncthing#6969) lib/model: Prevent duplicate need count on recalculating metadata (syncthing#6964) lib/db, lib/protocol: Never need empty-version entries (fixes syncthing#6961) (syncthing#6962) lib/model: Correct completion perc. when globalBytes is 0 (syncthing#6963) lib/db: Don't hang on double iterator release with Badger (syncthing#6960) test, lib/model: Various integration test updates & improvements (syncthing#6956) lib/db: Copy returned, old FileVersion (syncthing#6952) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The case sensitivity handling introduced in #6717 is really slow on windows. Originally reported in https://forum.syncthing.net/t/1-9-0-time-for-rescan-increases-dramatically-on-windows/15580. On my system a scan took 1min45s before and 28s after this PR for a ~70k item folder.