Add linientMtimes workaround for Android brokenness (ref #831)

This commit is contained in:
Jakob Borg
2014-10-14 08:48:35 +02:00
parent 870e3a45ef
commit 5f52e0581d
3 changed files with 40 additions and 17 deletions

View File

@@ -167,11 +167,12 @@ func (m *Model) StartFolderRW(folder string) {
panic("cannot start already running folder " + folder)
}
p := &Puller{
folder: folder,
dir: cfg.Path,
scanIntv: time.Duration(cfg.RescanIntervalS) * time.Second,
model: m,
ignorePerms: cfg.IgnorePerms,
folder: folder,
dir: cfg.Path,
scanIntv: time.Duration(cfg.RescanIntervalS) * time.Second,
model: m,
ignorePerms: cfg.IgnorePerms,
lenientMtimes: cfg.LenientMtimes,
}
m.folderRunners[folder] = p
m.fmut.Unlock()
@@ -184,6 +185,10 @@ func (m *Model) StartFolderRW(folder string) {
p.versioner = factory(folder, cfg.Path, cfg.Versioning.Params)
}
if cfg.LenientMtimes {
l.Infof("Folder %q is running with LenientMtimes workaround. Syncing may not work properly.", folder)
}
go p.Serve()
}