diff --git a/pkg/watcher/linux.go b/pkg/watcher/linux.go index 972a2fa..fd8395e 100644 --- a/pkg/watcher/linux.go +++ b/pkg/watcher/linux.go @@ -11,8 +11,10 @@ import ( const CrDelMask uint32 = syscall.IN_CREATE | syscall.IN_DELETE // inotifyCount is amount of InotifyEvent structures -// we read in WatchForMask(). 16 was chosen experimentally, -// with lesser amount events are often missing. +// we read in WatchForMask(). 16 was chosen experimentally. +// Use of sparse files (with preoccupied space using Seek()) +// allows us to have a little buffer. With smaller number +// events are often missing. const inotifyCount = 16 type InotifyWatcher struct {