This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]