From 7be78ed7dc6d5d6989c5cb06f429b93ec4af73bd Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Thu, 11 Jun 2020 12:06:45 +0200 Subject: [PATCH] Updated Filesystem Case Sensitivity (markdown) --- Filesystem-Case-Sensitivity.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Filesystem-Case-Sensitivity.md b/Filesystem-Case-Sensitivity.md index ec8ab15..f5aae06 100644 --- a/Filesystem-Case-Sensitivity.md +++ b/Filesystem-Case-Sensitivity.md @@ -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