commit | fd9ec7deca8bf46ecd2a795baaacf2b3a9be1197 | [log] [tgz] |
---|---|---|
author | Nickolai Zeldovich <nickolai@csail.mit.edu> | Wed Oct 26 20:31:22 2016 |
committer | Nathan Youngman <git@nathany.com> | Wed Oct 26 20:31:22 2016 |
tree | ae34945d5f4a0900366d0f1404197871149a4b2a | |
parent | bd2828f9f176e52d7222e565abb2d338d3f3c103 [diff] |
Properly handle inotify's IN_Q_OVERFLOW event (#149) * Properly handle inotify's IN_Q_OVERFLOW event Upon receiving an event with IN_Q_OVERFLOW set in the mask, generate an error on the Errors chan, so that the application can take appropriate action. * Use a well-defined error (ErrEventOverflow) for inotify overflow * Add a test for inotify queue overflow
fsnotify utilizes golang.org/x/sys rather than syscall
from the standard library. Ensure you have the latest version installed by running:
go get -u golang.org/x/sys/...
Cross platform: Windows, Linux, BSD and macOS.
Adapter | OS | Status |
---|---|---|
inotify | Linux 2.6.27 or later, Android* | Supported |
kqueue | BSD, macOS, iOS* | Supported |
ReadDirectoryChangesW | Windows | Supported |
FSEvents | macOS | Planned |
FEN | Solaris 11 | In Progress |
fanotify | Linux 2.6.37+ | |
USN Journals | Windows | Maybe |
Polling | All | Maybe |
* Android and iOS are untested.
Please see the documentation for usage. Consult the Wiki for the FAQ and further information.
fsnotify is a fork of howeyc/fsnotify with a new API as of v1.0. The API is based on this design document.
All releases are tagged based on Semantic Versioning. Further API changes are planned, and will be tagged with a new major revision number.
Go 1.6 supports dependencies located in the vendor/
folder. Unless you are creating a library, it is recommended that you copy fsnotify into vendor/github.com/fsnotify/fsnotify
within your project, and likewise for golang.org/x/sys
.
Please refer to CONTRIBUTING before opening an issue or pull request.
See example_test.go.