Skip to content

Commit

Permalink
lib/config: Check for "msdos" when detecting FAT FS in Android (#7072)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasz1986 committed Oct 30, 2020
1 parent deafe4c commit 4a616f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/config/folderconfiguration.go
Expand Up @@ -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 {
Expand Down

0 comments on commit 4a616f3

Please sign in to comment.