[gobolinux-devel] Listener Recursion
Bruno Moreira Guedes
thbmatrix at gmail.com
Fri Mar 14 16:30:17 NZDT 2008
Lucas,
Firstly, I find listener very interesting(congratulations!).
But coming back to the subject, I 'committed' your rollback removing
the '#if 0' from both codes. But it seems to work, if I understood its
concepts...
I attached the results it present for me(I've been added some "poor"
"'debugging' info").
So, I can't understand what's not working... As I expected, it
executed the action for all the subdirectories... But...
Until I write this message, I saw that it don't add new
files/directories to the inotify list!!
So, I thing it's the problem. Am I right??
Thank's
[]'
Bruno
2008/3/13, Lucas C. Villa Real <lucasvr at gobolinux.org>:
> On Thu, Mar 13, 2008 at 6:53 PM, Bruno Moreira Guedes
> <thbmatrix at gmail.com> wrote:
> > Hello,
> >
> > I'm currently interested in know what's the Listener status. Is there
> > any "TODO" list for it?
> > Is there something wrong with recursion on that?? Where can I find
> > more info about it and how to make detailed tests??
>
>
> Hi there,
>
> Listener works. Its current limitation, as you noticed, is that it
> doesn't watch for events recursivelly. For example, you can configure
> it to listen for removals at /Programs so that it will catch 'rm
> /Programs/Foo'. However, if you remove '/Programs/Foo/1.0' Listener
> won't trigger that rule, as it's looking for events at its parent dir
> only.
>
> I once started to implement that, and then I didn't have time to
> finish it, so I did a partial rollback to remove the intrusive code.
> You'll find an '#if 0' in rules.c that identifies the 'RECURSIVE'
> keyword in listener.conf and some unused code in listener.c (see
> walk_tree() and use of the 'recursive' member of struct
> directory_info).
>
> Once that's implemented fine it will be trivial to implement something
> like 'RECURSIVE = {n}', where {n} will define how many levels to look
> down the path. But that's a bonus :)
>
> Cheers,
>
>
> --
> Lucas
> powered by /dev/dsp
> _______________________________________________
> gobolinux-devel mailing list
> gobolinux-devel at lists.gobolinux.org
> http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: listener.1
Type: application/octet-stream
Size: 3608 bytes
Desc: not available
Url : http://lists.gobolinux.org/pipermail/gobolinux-devel/attachments/20080314/c67b5a65/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: listener.2
Type: application/octet-stream
Size: 183 bytes
Desc: not available
Url : http://lists.gobolinux.org/pipermail/gobolinux-devel/attachments/20080314/c67b5a65/attachment-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: listener.conf
Type: application/octet-stream
Size: 1379 bytes
Desc: not available
Url : http://lists.gobolinux.org/pipermail/gobolinux-devel/attachments/20080314/c67b5a65/attachment-0002.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log
Type: application/octet-stream
Size: 235 bytes
Desc: not available
Url : http://lists.gobolinux.org/pipermail/gobolinux-devel/attachments/20080314/c67b5a65/attachment-0003.obj
More information about the gobolinux-devel
mailing list