Monitoring File/Directory changes in Linux
FAM - File Alteration Monitor - FAM, the File Alteration Monitor, provides an API that applications can use to be notified when specific files or directories are changed.
FAM comes in two parts: fam, the daemon that listens for requests and delivers notification, and libfam, a library that client applications can use to communicate with fam
visit
Gamin is a file and directory monitoring system defined to be a subset of the FAM (File Alteration Monitor) system.
The main goals of the project are:
- minimize the security model of FAM, the daemon runs under the user account, it is compatible with SELinux
- simplify the code base, dropping some of the most exotic feature of FAM
- provide an API and ABI compatible replacement for FAM
- try to fix some other issues like resource consumption
Gamin also serves as an interface to test the inotify mechanism to improve the existing dnotify monitoring interface present in the Linux kernel.
At this point Gamin is fairly tied to Linux, portability is not a primary goal at this stage but if you have portability patches they are welcome. visit
Looks like this is a good starting point for learning how to use FAM.
0 Comments:
Post a Comment
<< Home