Scott Simpson <[EMAIL PROTECTED]> wrote on Fri, 4 Jan 2002 17:13:54 -0800:
> [...] Is there any way to detect if a change has been made to a
> file such as data changing, a change in ownership, a permissions
> change, etc programmatically? I looked through the various file
> system source code in the Linux kernel and didn't see anything
> that jumped out at me. Thank you.

I'd be interested in hearing if there's a standard way of doing this
under Linux.  I've seen it in other operating systems before, Node
Monitoring in later versions of AmigaDOS and Notifications in BeOS.

Perhaps this relies on a message passing OS - typically you tell the
OS (and file system indirectly) that you're interested in changes to
a particular file or directory, and you include some flags saying
what kinds of changes you are interested (iNode info, file contents,
etc).  Then when the file / directory changes, the file system posts
a message with the details to the previously supplied message queue,
which the user level program is reading from.

- Alex

Reply via email to