Re: Looking for a file monitor

From: Hareesh Nagarajan
Date: Fri Feb 24 2006 - 22:57:56 EST


Wei Hu wrote:
Yeah, that's basically what I'm looking for.
So is it correct that I can keep track of all the actions as inotify events?

Yes, you can. I just looked at the defn of sys_open and I see that
fsnotify_open(f->f_dentry);
gets called, which internally calls:
inotify_dentry_parent_queue_event(...) and,
inotify_inode_queue_event(...)

Do check out inotify. The same applies to other generic operations on the VFS layer.

Hareesh
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/