This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Is there a call to get information from a watch fd (from inotify_watch)?
- From: Stef Bon <stefbon at gmail dot com>
- To: libc-help at sourceware dot org
- Date: Fri, 19 Aug 2011 23:37:58 +0200
- Subject: Is there a call to get information from a watch fd (from inotify_watch)?
Hi,
I'm trying to get write a wrapper for inotify_add_watch, which will
-apart from just calling the syscall,
will inform the eventual filesystem a watch has been set on it.
For filesystems like FUSE, cifs and nfs it would be a big plus to make
them aware a watch has been set on an inode they manage.
So they can take the right action.
I know that in the kernel all the information is available, in the
inode where the watch has been set upon.
It looks a bit double work when writing the wrapper in glibc which
does that over again.
It's about th information the filesystem the watch has been set on,
and the inode,
so I guess the combination (superblock, inode) is sufficient. I'm
looking for something get_inotify_watch_info or something.
Stef