lib/fs: Fix and update error about inotify watch limit (fixes #4833) (#4835)

This commit is contained in:
Simon Frei
2018-03-23 12:56:38 +01:00
committed by Jakob Borg
parent e7dc2f9190
commit da3b38ccce
4 changed files with 39 additions and 26 deletions

View File

@@ -42,7 +42,7 @@ func (f *BasicFilesystem) Watch(name string, ignore Matcher, ctx context.Context
if err := notify.WatchWithFilter(filepath.Join(absName, "..."), backendChan, absShouldIgnore, eventMask); err != nil {
notify.Stop(backendChan)
if reachedMaxUserWatches(err) {
err = errors.New("failed to install inotify handler. Please increase inotify limits, see https://github.com/syncthing/syncthing-inotify#troubleshooting-for-folders-with-many-files-on-linux for more information")
err = errors.New("failed to setup inotify handler. Please increase inotify limits, see https://docs.syncthing.net/users/faq.html#inotify-limits")
}
return nil, err
}