From owner-fam@oss.sgi.com Thu Nov 1 07:31:05 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fA1FV5r12562 for fam-outgoing; Thu, 1 Nov 2001 07:31:05 -0800 Received: from montecarlo.DNAMERICAN.COM ([206.156.169.66]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fA1FV3012559 for ; Thu, 1 Nov 2001 07:31:04 -0800 Received: from [206.156.169.116] by montecarlo.DNAMERICAN.COM (NTMail 3.02.13) with ESMTP id ia054660 for ; Thu, 1 Nov 2001 10:42:17 -0500 Message-ID: <3BE16AA1.4000707@dnamerican.com> Date: Thu, 01 Nov 2001 10:30:41 -0500 From: Nathan Thompson-Amato Organization: D.N. American User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012 X-Accept-Language: en-us MIME-Version: 1.0 To: fam@oss.sgi.com Subject: [fam] FAMAccessed event? References: <010701c15abd$d5da8030$144ba8c0@wodonga.adacel.com.au> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-fam@oss.sgi.com Precedence: bulk As far as I can tell from the man pages, there's no way to be notified if a file is merely accessed -- it has to actually be modified or have its attributes changed. Is this really the case? If so, is anybody interested in adding support for some kind of FAMAccessed event? Thanks, Nathan -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Thu Nov 1 13:58:46 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fA1Lwkl22470 for fam-outgoing; Thu, 1 Nov 2001 13:58:46 -0800 Received: from nexus.adacel.com (shelob.adacel.com.au [203.36.26.146] (may be forged)) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fA1LwY022424 for ; Thu, 1 Nov 2001 13:58:37 -0800 Received: (qmail 20634 invoked from network); 1 Nov 2001 21:57:29 -0000 Received: from unknown (HELO selene) (192.168.75.20) by nexus.adacel.com with SMTP; 1 Nov 2001 21:57:29 -0000 Message-ID: <006001c16320$48c86340$144ba8c0@wodonga.adacel.com.au> From: "Michael Wardle" To: "Nathan Thompson-Amato" Cc: References: <010701c15abd$d5da8030$144ba8c0@wodonga.adacel.com.au> <3BE16AA1.4000707@dnamerican.com> Subject: Re: [fam] FAMAccessed event? Date: Fri, 2 Nov 2001 08:58:00 +1100 Organization: Adacel Technologies Limited MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-fam@oss.sgi.com Precedence: bulk ----- Original Message ----- From: "Nathan Thompson-Amato" To: Sent: Friday, November 02, 2001 2:30 AM Subject: [fam] FAMAccessed event? > As far as I can tell from the man pages, there's no way to be notified if a > file is merely accessed -- it has to actually be modified or have its > attributes changed. > > Is this really the case? Yes, I believe so. If you look at Event.h, you will see these events: * Changed * Deleted * Executing * Exited * Created * Moved * Acknowledge * Exists * EndExist So you'll notice no Accessed event. (I have a feeling that Executing and Moved aren't funtional at this stage, but don't take my word for it.) > If so, is anybody interested in adding support for some kind of FAMAccessed event? Not that I'm aware of. :-/ Regards -- MICHAEL WARDLE SGI FAM Maintainer Adacel Technologies -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Thu Nov 1 14:13:34 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fA1MDY722975 for fam-outgoing; Thu, 1 Nov 2001 14:13:34 -0800 Received: from montecarlo.DNAMERICAN.COM ([206.156.169.66]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fA1MDV022972 for ; Thu, 1 Nov 2001 14:13:31 -0800 Received: from [206.156.169.116] by montecarlo.DNAMERICAN.COM (NTMail 3.02.13) with ESMTP id xa054701 for ; Thu, 1 Nov 2001 17:24:45 -0500 Message-ID: <3BE1C8F2.7010902@dnamerican.com> Date: Thu, 01 Nov 2001 17:13:06 -0500 From: Nathan Thompson-Amato Organization: D.N. American User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012 X-Accept-Language: en-us MIME-Version: 1.0 To: fam@oss.sgi.com CC: Nathan Thompson-Amato Subject: Re: [fam] FAMAccessed event? References: <010701c15abd$d5da8030$144ba8c0@wodonga.adacel.com.au> <3BE16AA1.4000707@dnamerican.com> <006001c16320$48c86340$144ba8c0@wodonga.adacel.com.au> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-fam@oss.sgi.com Precedence: bulk Michael Wardle wrote: > > Yes, I believe so. If you look at Event.h, you will see these events: > * Changed > * Deleted > * Executing > * Exited > * Created > * Moved > * Acknowledge > * Exists > * EndExist > > So you'll notice no Accessed event. Yeah, I was hoping maybe there was some clever workaround. :-) > >>If so, is anybody interested in adding support for some kind of >> > FAMAccessed event? > > Not that I'm aware of. :-/ > Okay. It looks like the dnotify interface provides an "accessed" event (according to http://www.linuxhq.com/kernel/v2.4/doc/dnotify.txt.html), so I think FAM could theoretically be patched to do this. I'll look into this further in the next day or two. Thanks again, Nathan -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Mon Nov 5 11:46:33 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fA5JkXm18071 for fam-outgoing; Mon, 5 Nov 2001 11:46:33 -0800 Received: from montecarlo.DNAMERICAN.COM ([206.156.169.66]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fA5JkV018068 for ; Mon, 5 Nov 2001 11:46:31 -0800 Received: from [206.156.169.116] by montecarlo.DNAMERICAN.COM (NTMail 3.02.13) with ESMTP id ba054835 for ; Mon, 5 Nov 2001 14:57:53 -0500 Message-ID: <3BE6EC7D.3060409@dnamerican.com> Date: Mon, 05 Nov 2001 14:46:05 -0500 From: Nathan Thompson-Amato Organization: D.N. American User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012 X-Accept-Language: en-us MIME-Version: 1.0 To: fam@oss.sgi.com Subject: [fam] Updated fam.spec file? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-fam@oss.sgi.com Precedence: bulk Hi all, Neither of the fam.spec files included in the Rawhide distribution's fam-2.6.4-14.src.rpm seem to match the results of installing the corresponding binary RPM. Specifically, doing a `make rpm' inside the fam-oss-2.6.4-alex/build directory gives me an RPM that puts itself in /usr/local/ and doesn't supply /etc/fam.conf or /etc/xinetd/sgi_fam. Is there a more up-to-date source distribution? Or different build options I should be using? Thanks, Nathan -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Mon Nov 5 11:58:46 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fA5JwkM18363 for fam-outgoing; Mon, 5 Nov 2001 11:58:46 -0800 Received: from mail.hiwaay.net (IDENT:0@fly.HiWAAY.net [208.147.154.56]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fA5Jwi018360 for ; Mon, 5 Nov 2001 11:58:44 -0800 Received: from hiwaay.net ([24.196.16.153]) by mail.hiwaay.net (8.12.1/8.12.1) with ESMTP id fA5JwghM000577 for ; Mon, 5 Nov 2001 13:58:42 -0600 (CST) Message-ID: <3BE6A9F3.1010409@hiwaay.net> Date: Mon, 05 Nov 2001 15:02:11 +0000 From: Nick Hudson User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011029 X-Accept-Language: en-us MIME-Version: 1.0 To: fam@oss.sgi.com Subject: [fam] Fam with xinetd? References: <3BE6EC7D.3060409@dnamerican.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-fam@oss.sgi.com Precedence: bulk Is there anyway possible to run fam with xinetd without using a rpm? For those of us who dont use a rpm based distro this seems to be a problem... I can start fam oc by su root "fam -T 0" and it works fine ... but i would like for it to start with Xinted like the rpm does... is there anywork on a source file for this?? Thanks Nick Hudson -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Mon Nov 5 12:25:35 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fA5KPZN19979 for fam-outgoing; Mon, 5 Nov 2001 12:25:35 -0800 Received: from mjc.meridian.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fA5KPV019975 for ; Mon, 5 Nov 2001 12:25:31 -0800 Received: from localhost (alexl@localhost) by mjc.meridian.redhat.com (8.11.6/8.11.6) with ESMTP id fA5KPOQ06869; Mon, 5 Nov 2001 15:25:24 -0500 X-Authentication-Warning: mjc.meridian.redhat.com: alexl owned process doing -bs Date: Mon, 5 Nov 2001 15:25:23 -0500 (EST) From: Alex Larsson X-X-Sender: To: Nathan Thompson-Amato cc: Subject: Re: [fam] Updated fam.spec file? In-Reply-To: <3BE6EC7D.3060409@dnamerican.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-fam@oss.sgi.com Precedence: bulk On Mon, 5 Nov 2001, Nathan Thompson-Amato wrote: > Hi all, > > Neither of the fam.spec files included in the Rawhide distribution's > fam-2.6.4-14.src.rpm seem to match the results of installing the > corresponding binary RPM. Specifically, doing a `make rpm' inside the > fam-oss-2.6.4-alex/build directory gives me an RPM that puts itself in > /usr/local/ and doesn't supply /etc/fam.conf or /etc/xinetd/sgi_fam. I have a patch in the redhat SRPM that removes all of the 'make rpm' functionality. It's all broken and bad. Just get the specfile and sources from the source rpm and do "rpm -ba fam.spec". That should give you a working rpm. / Alex -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Mon Nov 5 12:26:24 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fA5KQO219999 for fam-outgoing; Mon, 5 Nov 2001 12:26:24 -0800 Received: from mjc.meridian.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fA5KQM019996 for ; Mon, 5 Nov 2001 12:26:22 -0800 Received: from localhost (alexl@localhost) by mjc.meridian.redhat.com (8.11.6/8.11.6) with ESMTP id fA5KQJl06876; Mon, 5 Nov 2001 15:26:19 -0500 X-Authentication-Warning: mjc.meridian.redhat.com: alexl owned process doing -bs Date: Mon, 5 Nov 2001 15:26:19 -0500 (EST) From: Alex Larsson X-X-Sender: To: Nick Hudson cc: Subject: Re: [fam] Fam with xinetd? In-Reply-To: <3BE6A9F3.1010409@hiwaay.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-fam@oss.sgi.com Precedence: bulk On Mon, 5 Nov 2001, Nick Hudson wrote: > Is there anyway possible to run fam with xinetd without using a rpm? > For those of us who dont use a rpm based distro this seems to be a > problem... I can start fam oc by su root "fam -T 0" and it works fine > ... but i would like for it to start with Xinted like the rpm does... is > there anywork on a source file for this?? Just take the sgi_fam.xinetd from the RAWHIDE fam source-rpm. / Alex -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Mon Nov 5 13:45:06 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fA5Lj6r22393 for fam-outgoing; Mon, 5 Nov 2001 13:45:06 -0800 Received: from montecarlo.DNAMERICAN.COM ([206.156.169.66]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fA5Lj1022389 for ; Mon, 5 Nov 2001 13:45:01 -0800 Received: from [206.156.169.116] by montecarlo.DNAMERICAN.COM (NTMail 3.02.13) with ESMTP id oa054848 for ; Mon, 5 Nov 2001 16:56:17 -0500 Message-ID: <3BE7083D.7030107@dnamerican.com> Date: Mon, 05 Nov 2001 16:44:29 -0500 From: Nathan Thompson-Amato Organization: D.N. American User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012 X-Accept-Language: en-us MIME-Version: 1.0 To: fam@oss.sgi.com Subject: Re: [fam] Updated fam.spec file? References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-fam@oss.sgi.com Precedence: bulk Alex Larsson wrote: > On Mon, 5 Nov 2001, Nathan Thompson-Amato wrote: > > Just get the specfile and sources from the source rpm and do "rpm -ba > fam.spec". That should give you a working rpm. > Okay. I did this: o Installed the source RPM (version 2.6.4-14) o Untarred the fam-oss-2.6.4.tar.gz o Copied fam-oss-2.6.4 into fam-oss-2.6.4-alex o Applied, in order, - fam_build.patch, - fam-oss-changed_race.patch, - fam-2.6.4-creds.patch - fam-2.6.4-dnotify.patch o cd fam-oss-2.6.4-alex ; o Replace all the NULLs in include/BTree.h with zeros o Add #include to test/test.c++ o ./configure --prefix=/usr --sysconfdir=/etc ; make o make dist o cp fam-oss-2.6.4.tar.gz ../ o cd ../ ; rpm -ba fam-oss-2.6.4/build/rpm/fam.spec I get, at the end of the RPM build process, this: make[2]: Leaving directory `/usr/src/redhat/BUILD/fam-oss-2.6.4' make[1]: Leaving directory `/usr/src/redhat/BUILD/fam-oss-2.6.4' + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip + /usr/lib/rpm/brp-strip-comment-note error: Bad owner/group: /usr/src/redhat/SOURCES/fam-oss-2.6.4/build/rpm/fam.spec RPM build errors: Bad owner/group: /usr/src/redhat/SOURCES/fam-oss-2.6.4/build/rpm/fam.spec RPM build errors: Bad owner/group: /usr/src/redhat/SOURCES/fam-oss-2.6.4/build/rpm/fam.spec I don't know what this means -- I chown'd and chgrp'd the fam.spec file to root with the same results. I can only assume that you're doing things a little bit differently. :-p Any suggestions? Nathan -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Mon Nov 5 14:02:58 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fA5M2wb23058 for fam-outgoing; Mon, 5 Nov 2001 14:02:58 -0800 Received: from montecarlo.DNAMERICAN.COM ([206.156.169.66]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fA5M2u023055 for ; Mon, 5 Nov 2001 14:02:56 -0800 Received: from [206.156.169.116] by montecarlo.DNAMERICAN.COM (NTMail 3.02.13) with ESMTP id sa054852 for ; Mon, 5 Nov 2001 17:14:13 -0500 Message-ID: <3BE70C70.5020805@dnamerican.com> Date: Mon, 05 Nov 2001 17:02:24 -0500 From: Nathan Thompson-Amato Organization: D.N. American User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012 X-Accept-Language: en-us MIME-Version: 1.0 To: fam@oss.sgi.com Subject: Re: [fam] Updated fam.spec file? References: <3BE7083D.7030107@dnamerican.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-fam@oss.sgi.com Precedence: bulk Nathan Thompson-Amato wrote: > o cd ../ ; rpm -ba fam-oss-2.6.4/build/rpm/fam.spec Yes, that's right. 'rpm' was untarring right on top of the old, unpatched tree. Grr. Anyway, nuking the old fam-oss-2.6.4 tree and running 'rpm -ba fam-oss-2.6.4-alex/build/rpm/fam.spec' gives me my RPMs, but the binary RPM still wants to put everything in /usr/local/ , and there's still no evidence that sgi_fam is getting installed. While I'm whining, I should mention that I'm also not getting a fam-devel RPM out of this process. Thoughts? Nathan -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Mon Nov 5 18:18:20 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fA62IKr01203 for fam-outgoing; Mon, 5 Nov 2001 18:18:20 -0800 Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fA62ID001199 for ; Mon, 5 Nov 2001 18:18:13 -0800 Received: from localhost (alexl@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) with ESMTP id fA62I8E04536; Mon, 5 Nov 2001 21:18:08 -0500 X-Authentication-Warning: devserv.devel.redhat.com: alexl owned process doing -bs Date: Mon, 5 Nov 2001 21:18:08 -0500 (EST) From: Alex Larsson X-X-Sender: To: Nathan Thompson-Amato cc: Subject: Re: [fam] Updated fam.spec file? In-Reply-To: <3BE7083D.7030107@dnamerican.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-fam@oss.sgi.com Precedence: bulk On Mon, 5 Nov 2001, Nathan Thompson-Amato wrote: > Alex Larsson wrote: > > > On Mon, 5 Nov 2001, Nathan Thompson-Amato wrote: > > > > Just get the specfile and sources from the source rpm and do "rpm -ba > > fam.spec". That should give you a working rpm. > > Okay. I did this: > > o Installed the source RPM (version 2.6.4-14) > o Untarred the fam-oss-2.6.4.tar.gz > o Copied fam-oss-2.6.4 into fam-oss-2.6.4-alex > o Applied, in order, > - fam_build.patch, > - fam-oss-changed_race.patch, > - fam-2.6.4-creds.patch > - fam-2.6.4-dnotify.patch > o cd fam-oss-2.6.4-alex ; > o Replace all the NULLs in include/BTree.h with zeros > o Add #include to test/test.c++ > o ./configure --prefix=/usr --sysconfdir=/etc ; make > o make dist > o cp fam-oss-2.6.4.tar.gz ../ > o cd ../ ; rpm -ba fam-oss-2.6.4/build/rpm/fam.spec This is all wrong? What are you trying to achive? If you just want to rebuild the source RPM, all you have to do is rpm --rebuild fam-2.6.4-14.src.rpm If you want to Make some changes, you just 1) install the source rpm rpm -i fam-2.6.4-14.src.rpm -> this will install source and patches in /usr/src/redhat/SOURCES, and the specfile in /usr/src/redhat/SPECS 2) modify the specfile emacs /usr/src/redhat/SPECS/fam.spec -> Do whatever you want with the specfile, such as adding a patch. Note that if you reference a patch, you must then place it in /usr/src/redhat/SOURCES before building 3) build the package rpm -ba /usr/src/redhat/SPECS/fam.spec -> this will untar the tarball in /usr/src/redhat/BUILD/fam-oss-2.6.4, apply all the patches (from /usr/src/redhat/SOURCES), configure, make, make install with prefix=/var/tmp/fam-root, collect all the files listed in the specfile, create binary rpms from them in /usr/src/redhat/RPMS/$arch, and collect the sources and spec into a .src.rpm in /usr/src/redhat/SRPMS/ That's all there is to it. / Alex -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Tue Nov 6 06:21:48 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fA6ELm219021 for fam-outgoing; Tue, 6 Nov 2001 06:21:48 -0800 Received: from montecarlo.DNAMERICAN.COM ([206.156.169.66]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fA6ELh019018 for ; Tue, 6 Nov 2001 06:21:43 -0800 Received: from [206.156.169.116] by montecarlo.DNAMERICAN.COM (NTMail 3.02.13) with ESMTP id ua054880 for ; Tue, 6 Nov 2001 09:33:02 -0500 Message-ID: <3BE7F1D8.1050104@dnamerican.com> Date: Tue, 06 Nov 2001 09:21:12 -0500 From: Nathan Thompson-Amato Organization: D.N. American User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012 X-Accept-Language: en-us MIME-Version: 1.0 To: fam@oss.sgi.com Subject: Re: [fam] Updated fam.spec file? References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-fam@oss.sgi.com Precedence: bulk Alex Larsson wrote: > > This is all wrong? What are you trying to achive? I want to make sure I can build a working RPM so that when I start butchering the FAM code I'll know it's not working because my code is broken, not because my RPM is broken. > If you just want to rebuild the source RPM, all you have to do is > rpm --rebuild fam-2.6.4-14.src.rpm > > If you want to Make some changes, you just > 1) install the source rpm > rpm -i fam-2.6.4-14.src.rpm > -> this will install source and patches in /usr/src/redhat/SOURCES, and > the specfile in /usr/src/redhat/SPECS > 2) modify the specfile > emacs /usr/src/redhat/SPECS/fam.spec > -> Do whatever you want with the specfile, such as adding a patch. > Note that if you reference a patch, you must then place it in > /usr/src/redhat/SOURCES before building > 3) build the package > rpm -ba /usr/src/redhat/SPECS/fam.spec > -> this will untar the tarball in /usr/src/redhat/BUILD/fam-oss-2.6.4, > apply all the patches (from /usr/src/redhat/SOURCES), configure, make, > make install with prefix=/var/tmp/fam-root, collect all the files > listed in the specfile, create binary rpms from them in > /usr/src/redhat/RPMS/$arch, and collect the sources and spec into a > .src.rpm in /usr/src/redhat/SRPMS/ > > That's all there is to it. > Wow. That's enormously easier than what I was doing. Thanks for the enlightenment. :-) Nathan -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Sun Nov 11 19:10:10 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fAC3AAg07118 for fam-outgoing; Sun, 11 Nov 2001 19:10:10 -0800 Received: from monkeyiq.dnsalias.org (CPE-203-45-214-174.qld.bigpond.net.au [203.45.214.174]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fAC3A7007115 for ; Sun, 11 Nov 2001 19:10:07 -0800 Received: by monkeyiq.dnsalias.org id fAC39m028450 ; Mon, 12 Nov 2001 13:09:48 +1000 Date: Mon, 12 Nov 2001 13:09:48 +1000 Message-Id: <200111120309.fAC39m028450@monkeyiq.dnsalias.org> To: fam@oss.sgi.com Subject: [fam] DNotify and a bigass dir From: monkeyiq MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-fam@oss.sgi.com Precedence: bulk Hi, I'm using fam fam-2.6.4-14 from rawhide. using the DNotify code that is patched into that version. reading /dev I get *************** overflow sigqueue *********************** from a fam -T 0 in a rootshell. Once this happens then the whole thing hits the deck in a flaming pile. Any thoughts? -- ----------------------------------------------------- http://witme.sourceforge.net/libferris.web/index.html -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Mon Nov 12 06:15:05 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fACEF5b21037 for fam-outgoing; Mon, 12 Nov 2001 06:15:05 -0800 Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fACEF2021033 for ; Mon, 12 Nov 2001 06:15:02 -0800 Received: from localhost (alexl@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) with ESMTP id fACEEsV28765; Mon, 12 Nov 2001 09:14:54 -0500 X-Authentication-Warning: devserv.devel.redhat.com: alexl owned process doing -bs Date: Mon, 12 Nov 2001 09:14:54 -0500 (EST) From: Alex Larsson X-X-Sender: To: monkeyiq cc: Subject: Re: [fam] DNotify and a bigass dir In-Reply-To: <200111120309.fAC39m028450@monkeyiq.dnsalias.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-fam@oss.sgi.com Precedence: bulk On Mon, 12 Nov 2001, monkeyiq wrote: > Hi, > I'm using fam fam-2.6.4-14 from rawhide. using the DNotify > code that is patched into that version. reading /dev I get > *************** overflow sigqueue *********************** > from a fam -T 0 in a rootshell. Once this happens then the > whole thing hits the deck in a flaming pile. > > Any thoughts? I will look into it. / Alex -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Mon Nov 12 12:04:32 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fACK4Wr05762 for fam-outgoing; Mon, 12 Nov 2001 12:04:32 -0800 Received: from montecarlo.DNAMERICAN.COM ([206.156.169.66]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fACK42005746 for ; Mon, 12 Nov 2001 12:04:02 -0800 Received: from [206.156.169.116] by montecarlo.DNAMERICAN.COM (NTMail 3.02.13) with ESMTP id ya055274 for ; Mon, 12 Nov 2001 15:15:34 -0500 Message-ID: <3BF02B0D.203@dnamerican.com> Date: Mon, 12 Nov 2001 15:03:25 -0500 From: Nathan Thompson-Amato Organization: D.N. American User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012 X-Accept-Language: en-us MIME-Version: 1.0 To: Nathan Thompson-Amato CC: fam@oss.sgi.com Subject: [fam] FAMAccessed patch References: <3BE7F1D8.1050104@dnamerican.com> Content-Type: multipart/mixed; boundary="------------070504020708000106010408" Sender: owner-fam@oss.sgi.com Precedence: bulk This is a multi-part message in MIME format. --------------070504020708000106010408 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Here's a preliminary patch that adds a FAMAccessed event to allow clients to be notified about file reads. I'd very much like to see something like this rolled into the mainstream FAM, so if anybody has any suggestions for changes that'll let that happen, I'd love to hear about it. Thanks, Nathan --------------070504020708000106010408 Content-Type: text/plain; name="fam-2.6.4-access.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="fam-2.6.4-access.patch" diff -burp fam-oss-2.6.4/fam/DNotify.c++ fam-oss-2.6.4-ndt/fam/DNotify.c++ --- fam-oss-2.6.4/fam/DNotify.c++ Tue Nov 6 17:21:26 2001 +++ fam-oss-2.6.4-ndt/fam/DNotify.c++ Wed Nov 7 10:09:08 2001 @@ -340,7 +340,8 @@ DNotify::watch_dir(const char *notify_di dwatch->fd = open(notify_dir, O_RDONLY); fcntl (dwatch->fd, F_SETSIG, SIGRTMIN); fcntl (dwatch->fd, F_NOTIFY, - (DN_MODIFY|DN_CREATE|DN_DELETE|DN_RENAME|DN_ATTRIB) | DN_MULTISHOT); + (DN_MODIFY|DN_CREATE|DN_DELETE| + DN_RENAME|DN_ATTRIB|DN_ACCESS) | DN_MULTISHOT); hash_dirwatch (dwatch); } diff -burp fam-oss-2.6.4/fam/Event.c++ fam-oss-2.6.4-ndt/fam/Event.c++ --- fam-oss-2.6.4/fam/Event.c++ Sat May 20 00:46:31 2000 +++ fam-oss-2.6.4-ndt/fam/Event.c++ Wed Nov 7 10:47:05 2001 @@ -32,6 +32,7 @@ const Event Event::Deleted = Event(D const Event Event::Executing = Event(ExecutingT); const Event Event::Exited = Event(ExitedT); const Event Event::Created = Event(CreatedT); +const Event Event::Accessed = Event(AccessedT); const Event Event::Acknowledge = Event(AcknowledgeT); const Event Event::Exists = Event(ExistsT); const Event Event::EndExist = Event(EndExistT); @@ -55,6 +56,8 @@ Event::getEventFromOpcode(char opcode) return &Created; // case 'M': /* M is unsupported */ // return Moved; + case 's': + return &Accessed; case 'G': return &Acknowledge; case 'e': @@ -90,6 +93,9 @@ Event::name() const case CreatedT: return "Created"; + case AccessedT: + return "Accessed"; + case MovedT: return "Moved"; @@ -113,7 +119,7 @@ Event::code() const { // Map event to letter. - static const char codeletters[] = "?cAXQFMGeP"; + static const char codeletters[] = "?cAXQFMsGeP"; assert(which < sizeof codeletters - 1); char code = codeletters[which]; assert(code != '?'); diff -burp fam-oss-2.6.4/fam/Event.h fam-oss-2.6.4-ndt/fam/Event.h --- fam-oss-2.6.4/fam/Event.h Sat May 20 00:46:31 2000 +++ fam-oss-2.6.4-ndt/fam/Event.h Wed Nov 7 15:57:46 2001 @@ -47,6 +47,7 @@ public: static const Event Created; // Moved is not supported // static const Event Moved; + static const Event Accessed; static const Event Acknowledge; static const Event Exists; static const Event EndExist; @@ -60,6 +61,7 @@ private: ExitedT = FAMStopExecuting, // 'Q' CreatedT = FAMCreated, // 'F' MovedT = FAMMoved, // 'M' (Not supported) + AccessedT = FAMAccessed, // 's' AcknowledgeT = FAMAcknowledge, // 'G' ExistsT = FAMExists, // 'e' EndExistT = FAMEndExist, // 'P' diff -burp fam-oss-2.6.4/fam/Interest.c++ fam-oss-2.6.4-ndt/fam/Interest.c++ --- fam-oss-2.6.4/fam/Interest.c++ Tue Nov 6 17:21:49 2001 +++ fam-oss-2.6.4-ndt/fam/Interest.c++ Mon Nov 12 14:18:59 2001 @@ -162,7 +162,53 @@ Interest::dev_ino(dev_t newdev, ino_t ne hashlink = NULL; } -/* Returns true if file changed since last stat */ +/* Returns true if the file has been "accessed" -- ie., "read from" -- + since the last stat, *AND* if the file has not been changed + since the last stat. Calling this routine does not count as a call to + do_stat(), nor does it count as an "access". +*/ +bool +Interest::accessed_since_stat() +{ + // Consider the case of a Directory changing into a file to be a + // simple change, and send only a Changed event. + + struct stat status; + int rc = lstat(name(), &status); + if (rc < 0) { + if (errno == ETIMEDOUT) { + return false; + } + memset(&status, 0, sizeof status); + } + + bool exists = status.st_mode != 0; + bool did_exist = old_stat.st_mode != 0; + bool access_happened = (old_stat.st_atime != status.st_atime); + + if (exists && !did_exist) + { + post_event(Event::Created); + notify_created(this); + } + else if (did_exist && !exists) + { + post_event(Event::Deleted); + notify_deleted(this); + } + + // If dev/ino changed, move this interest to the right hash chain. + if (status.st_dev != dev || status.st_ino != ino) { + dev_ino(status.st_dev, status.st_ino); + } + return access_happened; +} + + +/* Returns true if file changed since last stat. This function + MUST NOT change the access time on the file, or the FAMAccessed + event won't work correctly. + */ bool Interest::do_stat() { @@ -215,12 +261,17 @@ bool Interest::do_scan() { bool stat_changed = false; + bool accessed = false; if (needs_scan() && active()) { needs_scan(false); bool did_exist = exists(); + + accessed = accessed_since_stat(); stat_changed = do_stat(); if (stat_changed && did_exist && exists()) post_event(Event::Changed); + else if (accessed && did_exist && exists()) + post_event(Event::Accessed); report_exec_state(); } return stat_changed; diff -burp fam-oss-2.6.4/fam/Interest.h fam-oss-2.6.4-ndt/fam/Interest.h --- fam-oss-2.6.4/fam/Interest.h Tue Nov 6 17:21:26 2001 +++ fam-oss-2.6.4-ndt/fam/Interest.h Fri Nov 9 14:32:55 2001 @@ -59,7 +59,12 @@ public: virtual ~Interest(); const char *name() const { return myname; } + + /* This function MUST NOT change the file's access time, or + the FAMAccessed event won't work correctly. + */ bool exists() const { return old_stat.st_mode != 0; } + bool isdir() const { return (old_stat.st_mode & S_IFMT) == S_IFDIR; } virtual bool active() const = 0; bool needs_scan() const { return scan_state != OK; } @@ -80,6 +85,7 @@ public: protected: + bool accessed_since_stat(); bool do_stat(); virtual void post_event(const Event&, const char * = NULL) = 0; char& ci_bits() { return ci_char; } diff -burp fam-oss-2.6.4/fam/InternalClient.c++ fam-oss-2.6.4-ndt/fam/InternalClient.c++ --- fam-oss-2.6.4/fam/InternalClient.c++ Sat May 20 00:46:31 2000 +++ fam-oss-2.6.4-ndt/fam/InternalClient.c++ Mon Nov 12 14:19:42 2001 @@ -70,7 +70,7 @@ InternalClient::enqueue_scanner(Scanner } void -InternalClient::post_event(const Event& event, Request, const char *) +InternalClient::post_event(const Event& event, Request, const char *name) { // Log::debug("sent %s event: \"%s\" %s", Client::name(), name, event.name()); (*handler)(event, closure); diff -burp fam-oss-2.6.4/fam/InternalClient.h fam-oss-2.6.4-ndt/fam/InternalClient.h --- fam-oss-2.6.4/fam/InternalClient.h Sat May 20 00:46:31 2000 +++ fam-oss-2.6.4-ndt/fam/InternalClient.h Fri Nov 9 14:02:32 2001 @@ -43,7 +43,7 @@ public: ~InternalClient(); bool ready_for_events(); - void post_event(const Event&, Request, const char *name); + void post_event(const Event& event, Request, const char *name); void enqueue_for_scan(Interest *); void dequeue_from_scan(Interest *); void enqueue_scanner(Scanner *); diff -burp fam-oss-2.6.4/fam/NetConnection.c++ fam-oss-2.6.4-ndt/fam/NetConnection.c++ --- fam-oss-2.6.4/fam/NetConnection.c++ Sat May 20 00:46:31 2000 +++ fam-oss-2.6.4-ndt/fam/NetConnection.c++ Mon Nov 12 14:21:29 2001 @@ -126,14 +126,17 @@ NetConnection::input() int maxbytes = iend - itail; int ret = recv(fd, itail, maxbytes, 0); if (ret < 0) - { if (errno != EAGAIN && errno != ECONNRESET) + { + if (errno != EAGAIN && errno != ECONNRESET) { Log::perror("fd %d read error", fd); shutdown(); } return; } else if (ret == 0) - { shutdown(); + { + Log::debug("input: recv() call came back empty, shutting down"); + shutdown(); return; } else // (ret > 0) diff -burp fam-oss-2.6.4/fam/ServerHost.c++ fam-oss-2.6.4-ndt/fam/ServerHost.c++ --- fam-oss-2.6.4/fam/ServerHost.c++ Sat May 20 00:46:32 2000 +++ fam-oss-2.6.4-ndt/fam/ServerHost.c++ Mon Nov 12 14:22:36 2001 @@ -186,8 +186,8 @@ ServerHost::disconnect_handler(void *clo // necessary because NFS caches attribute information and we have to // wait for old cached info to be out of date. // -// For "Changed" events, we save the path because we need it to look -// up a DirEntry. We don't save the result of the first lookup +// For "Changed" and "Accessed" events, we save the path because we need +// it to look up a DirEntry. We don't save the result of the first lookup // because result may become invalid while we're sleeping. // // There is no way to avoid the deferred scan short of adding a @@ -205,15 +205,18 @@ ServerHost::event_handler(const Event* e // Also enqueue a deferred task to rescan later. if (*event == Event::Changed || *event == Event::Deleted || - *event == Event::Created || *event == Event::Exists) + *event == Event::Created || *event == Event::Exists || + *event == Event::Accessed) { ClientInterest *cip = host->requests.find(r); if (!cip) return; Interest *ip; - if (*event == Event::Changed || *event == Event::Deleted) - { ip = cip->find_name(path); + if (*event == Event::Accessed || *event == Event::Changed || + *event == Event::Deleted) + { + ip = cip->find_name(path); if (!ip) return; } diff -burp fam-oss-2.6.4/fam/TCP_Client.c++ fam-oss-2.6.4-ndt/fam/TCP_Client.c++ --- fam-oss-2.6.4/fam/TCP_Client.c++ Sat May 20 00:46:32 2000 +++ fam-oss-2.6.4-ndt/fam/TCP_Client.c++ Wed Nov 7 15:46:26 2001 @@ -310,7 +310,7 @@ void TCP_Client::post_event(const Event& event, Request request, const char *path) { conn.send_event(event, request, path); - Log::debug("sent event to %s: request %d \"%s\" %s", + Log::debug("TCP_Client sent event to %s: request %d \"%s\" %s", name(), request, path, event.name()); } diff -burp fam-oss-2.6.4/include/fam.h fam-oss-2.6.4-ndt/include/fam.h --- fam-oss-2.6.4/include/fam.h Sat May 20 00:46:32 2000 +++ fam-oss-2.6.4-ndt/include/fam.h Wed Nov 7 09:36:41 2001 @@ -114,7 +114,8 @@ typedef struct FAMRequest { *****************************************************************************/ enum FAMCodes { FAMChanged=1, FAMDeleted=2, FAMStartExecuting=3, FAMStopExecuting=4, FAMCreated=5, FAMMoved=6, - FAMAcknowledge=7, FAMExists=8, FAMEndExist=9 }; + FAMAccessed=7, FAMAcknowledge=8, FAMExists=9, + FAMEndExist=10 }; typedef struct FAMEvent { FAMConnection* fc; /* The fam connection that event occurred on */ diff -burp fam-oss-2.6.4/libfam/Client.c++ fam-oss-2.6.4-ndt/libfam/Client.c++ --- fam-oss-2.6.4/libfam/Client.c++ Sat May 20 00:46:32 2000 +++ fam-oss-2.6.4-ndt/libfam/Client.c++ Mon Nov 12 14:23:42 2001 @@ -224,7 +224,10 @@ Client::eventPending() int Client::nextEvent(FAMEvent *fe) { - if (!connected()) return -1; + if (!connected()) + { + return -1; + } if ((!haveCompleteEvent) && (readEvent(true) < 0)) { // EOF now @@ -284,6 +287,9 @@ Client::nextEvent(FAMEvent *fe) *q = '\0'; switch (code) { + case 's': // access + fe->code = FAMAccessed; + break; case 'c': // change fe->code = FAMChanged; break; @@ -318,7 +324,7 @@ Client::nextEvent(FAMEvent *fe) return -1; } #ifdef DEBUG -printf("\nFAM received %s ", msg); +printf("\nFAM received %c ", code); printf("translated to event code:%d, reqnum:%d, ud:%d, filename:<%s>\n", fe->code, reqnum, fe->userdata, fe->filename); #endif --------------070504020708000106010408-- -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Mon Nov 12 12:45:20 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fACKjKu06937 for fam-outgoing; Mon, 12 Nov 2001 12:45:20 -0800 Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fACKjH006934 for ; Mon, 12 Nov 2001 12:45:18 -0800 Received: from localhost (alexl@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) with ESMTP id fACKjDG15941; Mon, 12 Nov 2001 15:45:13 -0500 X-Authentication-Warning: devserv.devel.redhat.com: alexl owned process doing -bs Date: Mon, 12 Nov 2001 15:45:13 -0500 (EST) From: Alex Larsson X-X-Sender: To: Nathan Thompson-Amato cc: Subject: Re: [fam] FAMAccessed patch In-Reply-To: <3BF02B0D.203@dnamerican.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-fam@oss.sgi.com Precedence: bulk On Mon, 12 Nov 2001, Nathan Thompson-Amato wrote: > Here's a preliminary patch that adds a FAMAccessed event to allow clients > to be notified about file reads. I'd very much like to see something like > this rolled into the mainstream FAM, so if anybody has any suggestions for > changes that'll let that happen, I'd love to hear about it. Hmm. This has the potential to easily flood and overflow the signal queue. It can also very easily chew up a lot of CPU, since all accesses in the filesystem cause fam to rescan it's directories. What is the reason you want this? / Alex -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Mon Nov 12 12:58:47 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fACKwlA07208 for fam-outgoing; Mon, 12 Nov 2001 12:58:47 -0800 Received: from montecarlo.DNAMERICAN.COM ([206.156.169.66]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fACKwh007204 for ; Mon, 12 Nov 2001 12:58:43 -0800 Received: from [206.156.169.116] by montecarlo.DNAMERICAN.COM (NTMail 3.02.13) with ESMTP id ba055277 for ; Mon, 12 Nov 2001 16:10:12 -0500 Message-ID: <3BF037DA.30309@dnamerican.com> Date: Mon, 12 Nov 2001 15:58:02 -0500 From: Nathan Thompson-Amato Organization: D.N. American User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012 X-Accept-Language: en-us MIME-Version: 1.0 To: fam@oss.sgi.com Subject: Re: [fam] FAMAccessed patch References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-fam@oss.sgi.com Precedence: bulk Alex Larsson wrote: > > Hmm. This has the potential to easily flood and overflow the signal > queue. It can also very easily chew up a lot of CPU, since all > accesses in the filesystem cause fam to rescan it's directories. > Isn't the signal-queue overflow something that needs to be handled anyway? You're right, though, this patch doesn't even try to address either of those problems. > What is the reason you want this? For the application I'm working on, I want to keep statistics on how often a certain (user-definable) group of files is read from and written to. These statistics will be used for what amounts to a caching scheme for files that are normally stored remotely. The only other ways I can think of to gather these statistics are periodic polling (which is obviously bad for non-miniscule numbers of files) and implementing a filesystem that tracks these things itself (ick)... Nathan -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Mon Nov 12 14:50:04 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fACMo4r16292 for fam-outgoing; Mon, 12 Nov 2001 14:50:04 -0800 Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fACMo0016288 for ; Mon, 12 Nov 2001 14:50:00 -0800 Received: from localhost (alexl@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) with ESMTP id fACMnub20551; Mon, 12 Nov 2001 17:49:56 -0500 X-Authentication-Warning: devserv.devel.redhat.com: alexl owned process doing -bs Date: Mon, 12 Nov 2001 17:49:56 -0500 (EST) From: Alex Larsson X-X-Sender: To: Nathan Thompson-Amato cc: Subject: Re: [fam] FAMAccessed patch In-Reply-To: <3BF037DA.30309@dnamerican.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-fam@oss.sgi.com Precedence: bulk On Mon, 12 Nov 2001, Nathan Thompson-Amato wrote: > Alex Larsson wrote: > > > > > Hmm. This has the potential to easily flood and overflow the signal > > queue. It can also very easily chew up a lot of CPU, since all > > accesses in the filesystem cause fam to rescan it's directories. > > > > > Isn't the signal-queue overflow something that needs to be handled anyway? > You're right, though, this patch doesn't even try to address either of > those problems. It is supposed to be handled (but someone reported a bug about it), but getting a signal overflow is very costly. You must conservatively assume that all files in the system has changed, and scan them all. > > What is the reason you want this? > > > For the application I'm working on, I want to keep statistics on how often > a certain (user-definable) group of files is read from and written to. > These statistics will be used for what amounts to a caching scheme for > files that are normally stored remotely. Fam is not really accurate for this. Several accesses may be grouped together into only one change. The only thing you should really rely on is that the "final" state, after reading all events reflects the current state. > The only other ways I can think of to gather these statistics are periodic > polling (which is obviously bad for non-miniscule numbers of files) and > implementing a filesystem that tracks these things itself (ick)... Or modify the apps that read these file to record statistics. / Alex -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Tue Nov 13 10:42:03 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fADIg3U21795 for fam-outgoing; Tue, 13 Nov 2001 10:42:03 -0800 Received: from montecarlo.DNAMERICAN.COM ([206.156.169.66]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fADIfw021792 for ; Tue, 13 Nov 2001 10:41:58 -0800 Received: from [206.156.169.116] by montecarlo.DNAMERICAN.COM (NTMail 3.02.13) with ESMTP id ya055326 for ; Tue, 13 Nov 2001 13:53:32 -0500 Message-ID: <3BF16951.1080402@dnamerican.com> Date: Tue, 13 Nov 2001 13:41:21 -0500 From: Nathan Thompson-Amato Organization: D.N. American User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012 X-Accept-Language: en-us MIME-Version: 1.0 To: fam@oss.sgi.com Subject: Re: [fam] FAMAccessed patch References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-fam@oss.sgi.com Precedence: bulk Alex Larsson wrote: > On Mon, 12 Nov 2001, Nathan Thompson-Amato wrote: >> >>Isn't the signal-queue overflow something that needs to be handled anyway? >> You're right, though, this patch doesn't even try to address either of >>those problems. >> > It is supposed to be handled (but someone reported a bug about it), but > getting a signal overflow is very costly. You must conservatively assume > that all files in the system has changed, and scan them all. Ouch. That *is* expensive... >>For the application I'm working on, I want to keep statistics on how often >>a certain (user-definable) group of files is read from and written to. >>These statistics will be used for what amounts to a caching scheme for >>files that are normally stored remotely. >> > Fam is not really accurate for this. Several accesses may be grouped > together into only one change. The only thing you should really rely on is > that the "final" state, after reading all events reflects the current > state. This is okay for me -- I don't need tremendously precise stats, I just need to know whether a file has been accessed "a lot" or "not much". >>The only other ways I can think of to gather these statistics are periodic >>polling (which is obviously bad for non-miniscule numbers of files) and >>implementing a filesystem that tracks these things itself (ick)... >> > > Or modify the apps that read these file to record statistics. I don't think this is practical -- I need this to work transparently for arbitrary (potentially binary-only) apps. But now that I think about it, since I don't need a lot of precision, I might just use the dnotify interface directly and not worry about some of the edge cases (like signal-queue overflows). Thanks very much for your feedback, Nathan -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Thu Nov 15 20:59:31 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fAG4xVk17244 for fam-outgoing; Thu, 15 Nov 2001 20:59:31 -0800 Received: from nexus.adacel.com (shelob.adacel.com.au [203.36.26.146] (may be forged)) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fAG4xO017239 for ; Thu, 15 Nov 2001 20:59:24 -0800 Received: (qmail 19113 invoked from network); 16 Nov 2001 04:56:51 -0000 Received: from unknown (HELO selene) (192.168.75.20) by nexus.adacel.com with SMTP; 16 Nov 2001 04:56:51 -0000 Message-ID: <016f01c16e5b$79af1080$144ba8c0@wodonga.adacel.com.au> From: "Michael Wardle" To: Subject: [fam] FAM 2.6.6 released Date: Fri, 16 Nov 2001 15:59:26 +1100 Organization: Adacel Technologies Limited MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_016C_01C16EB7.AAC56BE0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-fam@oss.sgi.com Precedence: bulk This is a multi-part message in MIME format. ------=_NextPart_000_016C_01C16EB7.AAC56BE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi. A new release of SGI's open source version of FAM is now available. Changes in the latest version include: - fixed multiple user chown problems - fixed non-visible TMPDIR problem - several bug fixes from IRIX FAM FAM 2.6.6 can be downloaded from http://oss.sgi.com/projects/fam/download/fam-2.6.6.tar.gz This software is probably not perfect, and feedback is welcomed. Please submit bug reports using OSS Bugzilla at: http://oss.sgi.com/bugzilla/ and send questions, comments, or feedback to this list. -- MICHAEL WARDLE SGI FAM Maintainer Adacel Technologies ------=_NextPart_000_016C_01C16EB7.AAC56BE0 Content-Type: text/x-vcard; name="Michael Wardle.vcf" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Michael Wardle.vcf" BEGIN:VCARD VERSION:2.1 N:Wardle;Michael;Bradley;Mr. FN:Michael Wardle ORG:Adacel Technologies Limited;Global Software Engineering TITLE:Trainee Software Engineer TEL;WORK;VOICE:+61 2 6024 2699 TEL;CELL;VOICE:+61 415 439 838 TEL;WORK;FAX:+61 2 6024 3288 ADR;WORK:;Wodonga Software Engineering Center;19 Stanley = Street;Wodonga;Victoria;3690;Australia LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:Wodonga Software Engineering = Center=3D0D=3D0A19 Stanley Street=3D0D=3D0AWodonga, Vic=3D toria 3690=3D0D=3D0AAustralia ADR;HOME:;;;;;;Australia LABEL;HOME:Australia X-WAB-GENDER:2 URL;HOME:http://www.endbracket.net/ URL;WORK:http://www.adacel.com/ EMAIL;PREF;INTERNET:michael.wardle@adacel.com REV:20011116T045926Z END:VCARD ------=_NextPart_000_016C_01C16EB7.AAC56BE0-- -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Sat Nov 17 06:22:10 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fAHEMAn14404 for fam-outgoing; Sat, 17 Nov 2001 06:22:10 -0800 Received: from monkeyiq.dnsalias.org (CPE-203-45-214-174.qld.bigpond.net.au [203.45.214.174]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fAHEM5g14401 for ; Sat, 17 Nov 2001 06:22:05 -0800 Received: by monkeyiq.dnsalias.org id fAHELtS03795 ; Sun, 18 Nov 2001 00:21:55 +1000 Date: Sun, 18 Nov 2001 00:21:55 +1000 Message-Id: <200111171421.fAHELtS03795@monkeyiq.dnsalias.org> To: fam-list Cc: monkeyiq@users.sourceforge.net Subject: [fam] fam reading a empty dir using DEntry From: monkeyiq MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-fam@oss.sgi.com Precedence: bulk Hi, I've been using the Dentry patched fam for a while now (rawhide) fam-2.6.4-14 I noticed a while ago that when reading a dir that does not contain any files in it then the FAMEndExist event is never fired. Although I use Fam++ and ferris to get my FAM data, I am somewhat sure that it is not being fired because for a dir with 1+ files in it I get the EndExist event. Anyone had similar experience? ----------------------------------------------------- http://witme.sourceforge.net/libferris.web/index.html -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Sun Nov 25 22:35:25 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fAQ6ZPd07098 for fam-outgoing; Sun, 25 Nov 2001 22:35:25 -0800 Received: from yar.midnightlinux.com (yar.midnightlinux.com [216.254.93.242]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fAQ6ZNo07095 for ; Sun, 25 Nov 2001 22:35:23 -0800 Received: from localhost (jo2y@localhost) by yar.midnightlinux.com (8.9.3/8.9.3) with ESMTP id AAA30216 for ; Mon, 26 Nov 2001 00:46:18 -0500 Date: Mon, 26 Nov 2001 00:46:18 -0500 (EST) From: "James O'Kane" To: Subject: [fam] current usage Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-fam@oss.sgi.com Precedence: bulk Be looking at the archives, it seems that no one is using fam/imon at all. Is that true? Fam is included with RH 7.2, but I don't know off hand if anything is using it yet. I'm compiling imon into 2.4.16-pre1 right now. It didn't patch cleanly, but the .rej's didn't seem to bad. I'm curious if it would be possible to monitor the whole filesystem with imon, or if I should look at a different route. There is another OS (Plan 9 I think) that will schedule a backup of a file shortly after any changes have been made. I'm looking to see if that is possible with existing code or if I should write my own. Either way, I'm not a kernel/filesystem hacker, so it will be a learning experience. thanks -james -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Mon Nov 26 05:54:02 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fAQDs2i25139 for fam-outgoing; Mon, 26 Nov 2001 05:54:02 -0800 Received: from mailout2.informatik.tu-muenchen.de (mailout2.informatik.tu-muenchen.de [131.159.254.8]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fAQDs0o25136 for ; Mon, 26 Nov 2001 05:54:00 -0800 Received: from mailhalle.informatik.tu-muenchen.de (mailhalle.informatik.tu-muenchen.de [131.159.0.26]) by mailout2.informatik.tu-muenchen.de (Postfix) with ESMTP id 438658144 for ; Mon, 26 Nov 2001 13:53:51 +0100 (MET) Received: from informatik.tu-muenchen.de (sunhalle4.informatik.tu-muenchen.de [131.159.4.148]) by mailhalle.informatik.tu-muenchen.de (Postfix) with ESMTP id 264976CB6F for ; Mon, 26 Nov 2001 13:53:51 +0100 (MET) Message-ID: <3C023B95.49AC3D18@informatik.tu-muenchen.de> Date: Mon, 26 Nov 2001 13:54:45 +0100 From: Christian Kreibich X-Mailer: Mozilla 4.7 [de] (WinNT; U) X-Accept-Language: en-US,de MIME-Version: 1.0 To: fam@oss.sgi.com Subject: Re: [fam] current usage References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-fam@oss.sgi.com Precedence: bulk Hi James, James O'Kane wrote: > > Be looking at the archives, it seems that no one is using fam/imon at all. > Is that true? ooh no :) Many file managers use it (e.g. Nautilus), the Enlightenment File System Daemon makes heavy use of it, and so do a few other programs. It would be cool to have a list of those apps, though. Regards, -- Christian. ________________________________________________________________________ http://www.whoop.org -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Mon Nov 26 09:20:31 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fAQHKVC12236 for fam-outgoing; Mon, 26 Nov 2001 09:20:31 -0800 Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fAQHKSo12230 for ; Mon, 26 Nov 2001 09:20:29 -0800 Received: from localhost (alexl@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) with ESMTP id fAQGKP528578; Mon, 26 Nov 2001 11:20:25 -0500 X-Authentication-Warning: devserv.devel.redhat.com: alexl owned process doing -bs Date: Mon, 26 Nov 2001 11:20:25 -0500 (EST) From: Alex Larsson X-X-Sender: To: Christian Kreibich cc: Subject: Re: [fam] current usage In-Reply-To: <3C023B95.49AC3D18@informatik.tu-muenchen.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-fam@oss.sgi.com Precedence: bulk On Mon, 26 Nov 2001, Christian Kreibich wrote: > > Hi James, > > James O'Kane wrote: > > > > Be looking at the archives, it seems that no one is using fam/imon at all. > > Is that true? > > ooh no :) Many file managers use it (e.g. Nautilus), the Enlightenment > File System Daemon makes heavy use of it, and so do a few other > programs. It would be cool to have a list of those apps, though. KDirWatcher in kde-libs use it too, and therefore some KDE apps, such as konqueror and the KDE panel. / Alex -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Mon Nov 26 09:34:43 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fAQHYhF12925 for fam-outgoing; Mon, 26 Nov 2001 09:34:43 -0800 Received: from lausanne.4unet.net (dsl-2-dslam1-31.urbanet.ch [195.202.196.17] (may be forged)) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fAQHYbo12918 for ; Mon, 26 Nov 2001 09:34:37 -0800 Received: from developer.ch (tux.4unet.net [172.23.17.211]) by lausanne.4unet.net (Postfix) with ESMTP id CE1CA23647; Mon, 26 Nov 2001 17:34:32 +0100 (CET) Message-ID: <3C026EEA.7070600@developer.ch> Date: Mon, 26 Nov 2001 17:33:46 +0100 From: Atif Reply-To: aghaffar@developer.ch User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011120 X-Accept-Language: en-us MIME-Version: 1.0 To: fam@oss.sgi.com Cc: "James O'Kane" Subject: Re: [fam] current usage References: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by oss.sgi.com id fAQHYco12919 Sender: owner-fam@oss.sgi.com Precedence: bulk I tried to do something similar with imon+fam. To setup replication for clusters. You can read an article on this at http://www.linuxfocus.org/English/March2001/article199.shtml It kinda worked but not on large directories. Something about file descriptor limitation. I havent played with it in a long time though. If you succeed in fixing, it will be cool for setting up clusters without expensive storage hardwares. cheers James O'Kane wrote: > Be looking at the archives, it seems that no one is using fam/imon at all. > Is that true? Fam is included with RH 7.2, but I don't know off hand if > anything is using it yet. I'm compiling imon into 2.4.16-pre1 right now. > It didn't patch cleanly, but the .rej's didn't seem to bad. > > I'm curious if it would be possible to monitor the whole filesystem with > imon, or if I should look at a different route. There is another OS (Plan > 9 I think) that will schedule a backup of a file shortly after any changes > have been made. I'm looking to see if that is possible with existing code > or if I should write my own. Either way, I'm not a kernel/filesystem > hacker, so it will be a learning experience. > > thanks > -james > > > > > -- > Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ > To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com > -- Atif Ghaffar ---------------------------. +41 78 845 31 64 ¦ voice/sms +41 21 254 53 62 ¦ fax atif@developer.ch ¦ email http://atifghaffar.com ¦ homepage -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Mon Nov 26 14:31:26 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fAQMVQi26760 for fam-outgoing; Mon, 26 Nov 2001 14:31:26 -0800 Received: from nexus.adacel.com (shelob.adacel.com.au [203.36.26.146] (may be forged)) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fAQMVLo26756 for ; Mon, 26 Nov 2001 14:31:21 -0800 Received: (qmail 31643 invoked from network); 26 Nov 2001 21:27:49 -0000 Received: from unknown (HELO selene) (192.168.75.20) by nexus.adacel.com with SMTP; 26 Nov 2001 21:27:49 -0000 Message-ID: <001901c176c1$c7712010$144ba8c0@wodonga.adacel.com.au> From: "Michael Wardle" To: "James O'Kane" , References: Subject: Re: [fam] current usage Date: Tue, 27 Nov 2001 08:31:58 +1100 Organization: Adacel Technologies Limited MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-fam@oss.sgi.com Precedence: bulk ----- Original Message ----- From: "James O'Kane" To: Sent: Monday, November 26, 2001 4:46 PM Subject: [fam] current usage > Be looking at the archives, it seems that no one is using fam/imon at all. > Is that true? Fam is included with RH 7.2, but I don't know off hand if > anything is using it yet. KDE 2 (kdebase) and Nautilus (nautilus) both use it. > I'm curious if it would be possible to monitor the whole filesystem > with imon... It certainly should. Let me know if I can be of any assistance. -- MICHAEL WARDLE SGI FAM Maintainer Adacel Technologies -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Thu Nov 29 16:04:21 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fAU04Lm12135 for fam-outgoing; Thu, 29 Nov 2001 16:04:21 -0800 Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fAU04Io12131 for ; Thu, 29 Nov 2001 16:04:18 -0800 Received: from localhost (alexl@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) with ESMTP id fATN4CL26401; Thu, 29 Nov 2001 18:04:12 -0500 X-Authentication-Warning: devserv.devel.redhat.com: alexl owned process doing -bs Date: Thu, 29 Nov 2001 18:04:12 -0500 (EST) From: Alex Larsson X-X-Sender: To: Michael Wardle cc: Subject: Re: [fam] FAM 2.6.6 released In-Reply-To: <016f01c16e5b$79af1080$144ba8c0@wodonga.adacel.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-fam@oss.sgi.com Precedence: bulk On Fri, 16 Nov 2001, Michael Wardle wrote: > Hi. > > A new release of SGI's open source version of FAM is now available. > > Changes in the latest version include: > - fixed multiple user chown problems > - fixed non-visible TMPDIR problem > - several bug fixes from IRIX FAM > > FAM 2.6.6 can be downloaded from > http://oss.sgi.com/projects/fam/download/fam-2.6.6.tar.gz In the future, please make the tarball unpack into a subdirectory (which would typically be called fam-2.6.6). It makes is a lot easier to not accidentally fill a directory with files from mixed tarballs. It also makes it easier for packagers. / Alex -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Thu Nov 29 17:43:56 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fAU1hup19625 for fam-outgoing; Thu, 29 Nov 2001 17:43:56 -0800 Date: Thu, 29 Nov 2001 17:43:56 -0800 From: owner-fam@oss.sgi.com Message-Id: <200111300143.fAU1hup19625@oss.sgi.com> Received: from devserv.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fAU1RPo19336 for ; Thu, 29 Nov 2001 17:27:25 -0800 Received: from localhost (alexl@localhost) by devserv.devel.redhat.com (8.11.0/8.11.0) with ESMTP id fAU0RO015456 for ; Thu, 29 Nov 2001 19:27:24 -0500 X-Authentication-Warning: devserv.devel.redhat.com: alexl owned process doing -bs Date: Thu, 29 Nov 2001 19:27:23 -0500 (EST) From: Alex Larsson X-X-Sender: To: Subject: [fam] Cheesy patch Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-fam@oss.sgi.com Precedence: bulk There is a problem in the client library that makes it spew a lot of errors. When canceling monitors, it doesn't wait for the ack before continuing. This can cause sequences like: cancel monitor 1 cancel monitor 2 close connection (just closes the pipe) to give errors. What happens here is that the client sends some cancel requests, and then just closes the filedescriptor before the server gets to run. This makes the server get EPIPE when trying to write the ack for the cancel requests. I don't want to serialize cancels, as that is a huge performance hit. Therefor i placed this cheesy patch in the new RedHat packages: --- fam-2.6.6/fam/NetConnection.c++.epipe Thu Nov 29 18:57:24 2001 +++ fam-2.6.6/fam/NetConnection.c++ Thu Nov 29 19:00:48 2001 @@ -252,7 +252,19 @@ assert(ret == omsgList->len); } else { - Log::error("fd %d write error: %m", fd); + /* Since the client library can close it's fd before + * getting acks from all FAMCancelMonitor requests we + * may get a broken pipe error here when writing the ack. + * Don't threat this as an error, since that fills the logs + * with crap. + */ + if (errno == EPIPE) + { + Log::debug("fd %d write error: %m", fd); + } else + { + Log::error("fd %d write error: %m", fd); + } } msgList_t *oldHead = omsgList; / Alex -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com From owner-fam@oss.sgi.com Fri Nov 30 12:51:25 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fAUKpP902713 for fam-outgoing; Fri, 30 Nov 2001 12:51:25 -0800 Received: from front2.netvisao.pt ([213.228.128.57]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fAUKpIo02708 for ; Fri, 30 Nov 2001 12:51:19 -0800 Received: (qmail 21458 invoked from network); 30 Nov 2001 19:51:02 -0000 Received: from unknown (HELO localhost.localdomain) (217.129.241.195) by front2.netvisao.pt with SMTP; 30 Nov 2001 19:51:02 -0000 To: fam@oss.sgi.com Subject: [fam] Removing fam rpm From: pocm@rnl.ist.utl.pt (Paulo J. Matos aka PDestroy) Date: 30 Nov 2001 19:59:03 +0000 Message-ID: Lines: 32 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-fam@oss.sgi.com Precedence: bulk Hi all, I'm trying to install fam tar.gz but I would like to remove the existing rpm first (nope, I don't want to install a new rpm). The problem is the following: [root@localhost /root]# rpm -qa | grep -i fam fam-2.6.4-1 [root@localhost /root]# rpm -e fam Removing fam from rpc... Removing fam from inetd.conf... Couldn't find inetd.conf in /etc /usr/etc /usr/local/etc Restarting inetd... inetd: no process killed error: execution of %preun scriptlet from fam-2.6.4-1 failed, exit status 1 [root@localhost /root]# rpm -qa | grep -i fam fam-2.6.4-1 And I'm not able to get past this point. Any ideas? Best regards, -- Paulo J. Matos aka PDestroy : pocm(_at_)rnl.ist.utl.pt Instituto Superior Tecnico - Lisbon Software & Computer Engineering - A.I. - > http://www.rnl.ist.utl.pt/~pocm --- Yes, God had a deadline... So, He wrote it all in Lisp! -- Source code, list archive, and docs: http://oss.sgi.com/projects/fam/ To unsubscribe: echo unsubscribe fam | mail majordomo@oss.sgi.com