2004-10-05 23:16:59

by Robert Love

[permalink] [raw]
Subject: RE: /dev/misc/inotify 0.11 [adr]

On Tue, 2004-10-05 at 16:10 -0700, David Busby wrote:

> Here's another issue, when reading from PERL sometimes the filename part
> of the struct inotify_event is wayyyy off. I'm reading 268 bytes at a
> time, first 12 are the wd,mask and cookie (what is cookie anyways?) then
> 256 for the file name. Isn't that correct? I'll try to get the
> inotify_test.c program to reproduce.

The cookie is going to be used to connection two related events, such as
MOVED_TO and MOVED_FROM. Right now it is unused.

We've never seen this problem in inotify_test or Gamin or Beagle ... so
I would suspect this is related to your specific Perl example, but
please let me know if you find anything.

Best,

Robert Love


2004-10-05 23:25:30

by Robert Love

[permalink] [raw]
Subject: RE: /dev/misc/inotify 0.11 [adr]

On Tue, 2004-10-05 at 16:21 -0700, David Busby wrote:
> It's my PERL, I've just run a test. inotify_test.c works correctly and
> shows the proper filenames. My PERL script is sometims dropping the
> first character, I've not been able to re-product the full junk ouput
> (it was all Java source code!?). I'll keep hunting.

OK.

> Is there a place I can subscribe to the inotify-announce list?

Sorry, just lkml.

Robert Love


2004-10-05 23:27:03

by David Busby

[permalink] [raw]
Subject: RE: /dev/misc/inotify 0.11 [adr]

It's my PERL, I've just run a test. inotify_test.c works correctly and
shows the proper filenames. My PERL script is sometims dropping the
first character, I've not been able to re-product the full junk ouput
(it was all Java source code!?). I'll keep hunting. Is there a place I
can subscribe to the inotify-announce list?

/djb

> -----Original Message-----
> From: Robert Love [mailto:[email protected]]
> Sent: Tuesday, October 05, 2004 4:12 PM
> To: David Busby
> Cc: [email protected]; [email protected]
> Subject: RE: /dev/misc/inotify 0.11 [adr]
>
>
> On Tue, 2004-10-05 at 16:10 -0700, David Busby wrote:
>
> > Here's another issue, when reading from PERL sometimes the filename
> > part of the struct inotify_event is wayyyy off. I'm
> reading 268 bytes
> > at a time, first 12 are the wd,mask and cookie (what is cookie
> > anyways?) then 256 for the file name. Isn't that correct?
> I'll try to
> > get the inotify_test.c program to reproduce.
>
> The cookie is going to be used to connection two related
> events, such as MOVED_TO and MOVED_FROM. Right now it is unused.
>
> We've never seen this problem in inotify_test or Gamin or
> Beagle ... so I would suspect this is related to your
> specific Perl example, but please let me know if you find anything.
>
> Best,
>
> Robert Love
>
>