Updated Filesystem Case Sensitivity (markdown)

Simon Frei committed 2020-06-11 12:06:45 +02:00
1 parent 3380bcd526
commit 7be78ed7dc
1 file changed
+9 -2
+9 -2
@@ -68,12 +68,12 @@ Problem: Rabbithole.
2. What to do when detecting case conflicts?
Consensus is for (a).
(a) Make it a sync error, thus the user will have to fix the problem on a case-sensitive peer - just like with invalid filenames on windows currently.
(b) Create "case-conflicts" just like the current concurrent modification conflicts. I.e. with existing `foo.txt` and to be pulled `Foo.txt`, you end up with something like `Foo.case-conflict-*timestamp*-*dev*.txt".
(c) Choose one of the names automatically pure case-only conflicts (i.e. same content and permission).
3. How to detect correct case?
(a) listdir based methods
@@ -84,6 +84,13 @@ windows: FindFirstFile (works). macos: F_GETPATH option for fcntl (untested). No
Hopefully (a) with some smartness is fast enough, so we can just use `os` and not deal with low-level system calls.
### Extensions/Questions not relevant to an initial working solution
1. Should there be special treatment for case-only conflicts?
By "case-only" I mean that the data is the same, but the name differs in case only. In the similar (not same!) situation of version conflicts (concurrent changes) with equal data we resolve it automatically. We could do the same for "case-only" by just choosing one of the two names without user interaction.
### Code
- https://github.com/syncthing/syncthing/pull/4584