summaryrefslogtreecommitdiff
path: root/src/inotify.c
AgeCommit message (Collapse)AuthorFilesLines
2014-10-29Imported Upstream version 1.26upstream/1.26Zhang zhengguang1-1/+1
2014-07-17Imported Upstream version 1.24upstream/1.24Zhang zhengguang1-9/+9
2012-11-23inotify: Watch out for files moved to/from watched dirsDaniel Wagner1-1/+2
When we do not watch watch for IN_MOVED_TO or IN_MOVED_FROM we can easily inconsistent. The user creates a file and moves it then from the watched directory. We wouldn't see this change and therefore keep the configuration. That is a rather anoying behavoir for the policy plugin.
2012-11-23inotify: Move inotify code into its own fileDaniel Wagner1-0/+236
The inotify code will be used by the core (config.c) and the session policy plugin. We introduce a new API for file modifcation notifcation. We move the factored out code part from the last patch into a new file and also change the inotify code so that it allows to monitor not only STORAGEDIR. When registering a new observer, the callee has to tell which directory should be watched. inotify.c will group the observers together.