On 22 May, Rusty Ballinger scribbled:
-> > hm good point.. i do run it as a daemon.. um... this isnt nfs tho -
-> > it's /mnt/cdrom :) so it shoudl be all nice and local..
-> ...
-> > but then i get no "exists" or "add" events...
-> > if i go mounting and unmounting it kind of works - but its flakey at
-> > best (firts tim i unmounted it sent deletes for the files in /mnt/cdrom
-> > - when i remounted they appeard - i got adds but wh i unmoutned again
-> > their didnt go away...)
->
-> Hey, you're right, with /dev/cdrom, it happens to me too. It looks like
-> there's something weird going on with /etc/mtab. (fam monitors that itself,
-> and when it changes, fam rebuilds its table of mounted filesystems and
-> sends notification for monitored stuff which was just mounted or unmounted.)
->
-> Anyway, the weird thing about /etc/mtab is its inode number is changing
-> after some operations (so it's being replaced by a new file), and fam isn't
-> noticing subsequent mounts/unmounts. It looks like part of the problem is
-> that FileSystemTable::mtab_event_handler ignores everything except Changed
-> events on /etc/mtab, and part of the problem is that you don't seem to get
-> changed events when you're monitoring a file (not a directory) and someone
-> renames a file over the one you're monitoring. That looks like a problem
-> in imon (as it works on irix running the same fam).
aha! I knew somehting was fishy :)
--
--------------- Codito, ergo sum - "I code, therefore I am" --------------------
The Rasterman (Carsten Haitzler) raster@xxxxxxxxxxxxx raster@xxxxxxxxxxx
raster@xxxxxxxxxxxxxxxxx raster@xxxxxxxxx
raster@xxxxxxxxxx
--
Source code, list archive, and docs: http://oss.sgi.com/projects/fam/
To unsubscribe: echo unsubscribe fam | mail majordomo@xxxxxxxxxxx
|