Messages in this thread | | | From | (Konstantin Olchanski) | Subject | Re: strange disk activity [tail -f] | Date | 5 Apr 1996 23:56:17 GMT |
| |
In article <199604020857.JAA16902@sable.ox.ac.uk>, Malcolm Beattie <mbeattie@sable.ox.ac.uk> writes: > Ingo Molnar writes: > > might be a stupid question, but is there no way doing event based reads > > on files [selects and/or blocking reads at the end of the file] ? > > There was an extension to FFS for "watchdogs" which allowed user-mode > programs to "guard" files and directories.
The SGI Irix has a similar facility, called 'fam' (filesystem alteration monitor).
User-mode programs use an ioctl() to register their interest in a file and then read kernel messages (such as "files was changed", "file was deleted", etc...) from /dev/imon.
C.O.
| |