On 21 May, Rusty Ballinger scribbled:
-> > i just noted theres a bug in fam/imon.. if you monitor a mountpoint
-> > thats unmounted - then it gets moutned fam doesn send back exists/add
-> > events - it does nothing.. :(
->
-> Hey, I just tried that, and it worked for me. The nfs client (where the
-> monitoring is being done) is running a 2.2.13 kernel with imon configured
-> as a module. Monitoring the mount point, and then mounting a filesystem
-> from an irix box with fam, I got a bunch of create events; unmounting it,
-> I got a bunch of delete events; then mounting a filesystem from a linux box
-> without fam on the same mount point, I got a bunch of create events, and
-> then unmounting it, I got the delete events. Is fam failing to monitor
-> /etc/mtab or something? Do you see anything interesting if you run fam in
-> debug mode? (Either by adding "-d" to the line that starts it in
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..
-> inetd.conf, and making sure syslogd is sending debug messages somewhere, or
-> by starting fam yourself & seeing what it prints out. Remember that if you
-> start fam yourself, it registers itself with the portmapper, and
-> inetd/portmap will be confused later. I will add "how do I run fam in
-> debug mode" to the FAQ.)
well i run it from rc.local with -T 0 so it always hangs about.. :)
lets see....
fam[1277]: client 6 said: request 4 monitor dir "/mnt/cdrom"
fam[1277]: Setting euid to 500
fam[1277]: told imon to monitor "/mnt/cdrom" = dev 8/5, ino 36865
fam[1277]: sent event to client 6: request 4 "/mnt/cdrom" Exists
fam[1277]: +chdir to "/mnt/cdrom"
fam[1277]: -chdir to "/"
fam[1277]: sent event to client 6: request 4 "/mnt/cdrom" EndExist
fam[1277]: imon said dev 8/21, ino 36865 changed CONTENT
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...)
--
--------------- 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
|