OpenSolaris

Printable Version Enter a New Search
Bug ID 6367770
Synopsis RFE: add userland interface to fem (file event monitoring)
State 10-Fix Delivered (Fix available in build)
Category:Subcategory kernel:fs
Keywords fem
Responsible Engineer Prakash Sangappa
Reported Against s10 , 5.10
Duplicate Of
Introduced In
Commit to Fix snv_72
Fixed In snv_72
Release Fixed solaris_nevada(snv_72)
Related Bugs 6374367 , 4667502 , 4968829 , 6575569 , 6588702 , 6588832 , 6588839 , 6589916 , 6691387 , 6753388 , 5106165
Submit Date 29-December-2005
Last Update Date 31-August-2007
Description
Solaris 10 introduced the new file event monitoring framework (fem) which is currently only used by NFSv4.
It would be helpful to add a userland interface to this feature. This would enable applications to monitor certain vnode operations on selected files. An example would be svc.startd (from smf) who could monitor file:// dependcies or an auditing application monitoring only a few specific files to log access to those files.

See comments for details.
Work Around
Currently userland applications can't get notifications of file events but they have to check/monitor the file for any possible modifications by issuing stat() calls in a loop. This is a waste of CPU ressources. Monitoring other read accesses to files (without file locking) isn't possible at all (for a single application) and currently only can be implemented via auditing (BSM). Auditing however can't be activated on specific files.
Comments
N/A