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
|