fam
[Top] [All Lists]

Re: [fam] not getting 'created' notifications

To: fam@xxxxxxxxxxx
Subject: Re: [fam] not getting 'created' notifications
From: John Fluharty <john.fluharty@xxxxxxxxxxxxxx>
Date: Mon, 11 Feb 2002 23:00:40 -0500
References: <3C67F45D.50102@xxxxxxxxxxxxxx> <3C6866F9.6080505@xxxxxxxxxx>
Sender: owner-fam@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204
Michael Wardle wrote:

John Fluharty wrote:

[...]

When we decompress (tar xvfz) an archive with a fair number of files (>50) and folders (>10) into the montored folder, fam does not send a 'create' for all of the new files and folders. It always sends an 'exists' but not always 'created'.


You're not expecting files in newly created subdirectories to be reported, tho, are you? FAM should only report files (including directories) created in exactly that directory, for instance I don't think monitoring / reports any change to any file on the system (and it probably shouldn't): it only reports new entries directly in /.

It'd probably be easy for me to reproduce (and I will try when I get time), but if you'd sent the output of your own program and fam (running with -d), and clarify exactly what you expect, it would be helpful.

(Again, it might be best to attach this stuff to the bug if you have access to http://oss.sgi.com/bugzilla/.)

Thanks.

I understand that you only get notified of changes immediately within directories being monitored, and not in subdirectories. As soon as we get a 'created' message for a directory, we monitor the directory, so (in theory) we should be individually monitoring each directory in the tree, starting from when it is created. I think that's where the problem lies. If I untar an archive that creates a subdirectory in the directory I am monitoring followed by a slew of files within this subdirectory, by the time my code catches the 'created' message from FAM and tells FAM to monitor the new subdirectory, half the files in the subdirectory have already been created (untarred) and all I get is 'exists' messages for them. So, I don't think its a problem with the speed of FAM, or any kind of bug within FAM for that matter. What I really need is a way to tell FAM to monitor an entire directory tree, including all existing and newly created subdirectories. Is there a way to get it to do this?














--
Source code, list archive, and docs: http://oss.sgi.com/projects/fam/
To unsubscribe: echo unsubscribe fam | mail majordomo@xxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>