Explorar o código

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

Tomasz Wilczyński %!s(int64=5) %!d(string=hai) anos
pai
achega
4a616f3cb2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/config/folderconfiguration.go

+ 1 - 1
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 {