From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 17 16:18:01 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4048B16A41F for ; Thu, 17 Nov 2005 16:18:01 +0000 (GMT) (envelope-from xride@x12.dk) Received: from swip.net (mailfe08.swip.net [212.247.154.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9636643D4C for ; Thu, 17 Nov 2005 16:18:00 +0000 (GMT) (envelope-from xride@x12.dk) X-T2-Posting-ID: lkM/Dn7LTUP9vUt2XCoVCw== Received: from x12.dk ([83.72.97.237] verified) by mailfe08.swip.net (CommuniGate Pro SMTP 5.0.1) with ESMTP id 13470929; Thu, 17 Nov 2005 17:17:59 +0100 Received: from localhost (unknown [127.0.0.1]) by x12.dk (Postfix) with ESMTP id 936DD50818; Thu, 17 Nov 2005 17:17:58 +0100 (CET) Received: from x12.dk ([127.0.0.1]) by localhost (x12.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00167-04; Thu, 17 Nov 2005 17:16:36 +0100 (CET) Received: from x12.dk (localhost [127.0.0.1]) by x12.dk (Postfix) with ESMTP; Thu, 17 Nov 2005 17:16:36 +0100 (CET) Received: from localhost (xride@localhost) by x12.dk (8.13.3/8.13.3/Submit) with ESMTP id jAHGGZEd000359; Thu, 17 Nov 2005 17:16:35 +0100 (CET) (envelope-from xride@x12.dk) Date: Thu, 17 Nov 2005 17:16:35 +0100 (CET) From: Soeren Straarup To: Cornelis Swanepoel In-Reply-To: Message-ID: <20051117171543.A39634@x12.dk> References: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-600370571-1132244195=:39634" X-Virus-Scanned: amavisd-new at x12.dk Cc: freebsd-hackers@freebsd.org Subject: Re: Filesystem monitoring question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2005 16:18:01 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-600370571-1132244195=:39634 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 17 Nov 2005, Cornelis Swanepoel wrote: > I have a FreeBSD 6.0 box with a partition that is accessible to a number = of > clients via SMB and NFS. > > I would like to monitor activity on this partition so that every time a > write to it is completed, my C program is run (which stats the file and > stores some info about it in a database amongst other things) > > My question is: What do I need to learn in order to construct a trigger f= or > my code? > > If anyone can point me in the right direction I would greatly appreciate = it. > > Thanks > > Cornelis I don't know if this is what your looking for: /usr/src/usr.sbin/gstat \S=F8ren Soeren Straarup | aka OZ2DAK aka Xride FreeBSD wannabe | FreeBSD since 2.2.6-R 'We wanted to believe. But the tools had been taken away..' Mulder --0-600370571-1132244195=:39634--