From 4a616f3cb27f59156179b24c91d05c6ba1d5fd23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Wilczy=C5=84ski?= Date: Fri, 30 Oct 2020 23:13:56 +0900 Subject: [PATCH] lib/config: Check for "msdos" when detecting FAT FS in Android (#7072) --- lib/config/folderconfiguration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config/folderconfiguration.go b/lib/config/folderconfiguration.go index bfa9bc755..4c08b9d12 100644 --- a/lib/config/folderconfiguration.go +++ b/lib/config/folderconfiguration.go @@ -71,7 +71,7 @@ func (f FolderConfiguration) ModTimeWindow() time.Duration { if usage, err := disk.Usage(f.Filesystem().URI()); err != nil { dur = 2 * time.Second l.Debugf(`Detecting FS at "%v" on android: Setting mtime window to 2s: err == "%v"`, f.Path, err) - } else if usage.Fstype == "" || strings.Contains(strings.ToLower(usage.Fstype), "fat") { + } else if usage.Fstype == "" || strings.Contains(strings.ToLower(usage.Fstype), "fat") || strings.Contains(strings.ToLower(usage.Fstype), "msdos") { dur = 2 * time.Second l.Debugf(`Detecting FS at "%v" on android: Setting mtime window to 2s: usage.Fstype == "%v"`, f.Path, usage.Fstype) } else {