Jelajahi Sumber

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

Tomasz Wilczyński 5 tahun lalu
induk
melakukan
4a616f3cb2
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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 {