lib/config: Check for "msdos" when detecting FAT FS in Android (#7072)

This commit is contained in:
Tomasz Wilczyński
2020-10-30 15:13:56 +01:00
committed by GitHub
parent deafe4ca53
commit 4a616f3cb2
+1 -1
View File
@@ -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 {