fam
[Top] [All Lists]

Re: [fam] bug in fam/imon?

To: raster@xxxxxxxxxxxxx
Subject: Re: [fam] bug in fam/imon?
From: "Rusty Ballinger" <rusty@xxxxxxxxxxxxxxxxxx>
Date: Mon, 22 May 2000 14:10:34 -0700
Cc: fam@xxxxxxxxxxx
In-reply-to: raster@xxxxxxxxxxxxx "Re: [fam] bug in fam/imon?" (May 22, 12:44am)
References: <200005220744.AAA01503@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Reply-to: rusty@xxxxxxx
Sender: owner-fam@xxxxxxxxxxx
> 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).

--Rusty

--
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>