mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-22 22:58:25 +00:00
lib/config: Check for "msdos" when detecting FAT FS in Android (#7072)
This commit is contained in:
parent
deafe4ca53
commit
4a616f3cb2
@ -71,7 +71,7 @@ func (f FolderConfiguration) ModTimeWindow() time.Duration {
|
|||||||
if usage, err := disk.Usage(f.Filesystem().URI()); err != nil {
|
if usage, err := disk.Usage(f.Filesystem().URI()); err != nil {
|
||||||
dur = 2 * time.Second
|
dur = 2 * time.Second
|
||||||
l.Debugf(`Detecting FS at "%v" on android: Setting mtime window to 2s: err == "%v"`, f.Path, err)
|
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
|
dur = 2 * time.Second
|
||||||
l.Debugf(`Detecting FS at "%v" on android: Setting mtime window to 2s: usage.Fstype == "%v"`, f.Path, usage.Fstype)
|
l.Debugf(`Detecting FS at "%v" on android: Setting mtime window to 2s: usage.Fstype == "%v"`, f.Path, usage.Fstype)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user