From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 17 15:07:50 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 009B916A41F for ; Thu, 17 Nov 2005 15:07:50 +0000 (GMT) (envelope-from rools.ster@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D18243D49 for ; Thu, 17 Nov 2005 15:07:48 +0000 (GMT) (envelope-from rools.ster@gmail.com) Received: by xproxy.gmail.com with SMTP id t15so1778194wxc for ; Thu, 17 Nov 2005 07:07:48 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=KO4giKTmWdCsB9oDzwF+Rhk27+UTJ/4kXzpFd3salHxX7IInSo79pK9IWhjMOCJXWpx0kmi4C6+BrHcrnxf/GNL5d1Mi/fvjfZXYyFdD14zwm1F/HGsUsYqW6gmPgny4SDBCFfDJHMdEa5rg7zJJpdaz+ShnhdheYqt+qy1bI7M= Received: by 10.65.126.9 with SMTP id d9mr4037396qbn; Thu, 17 Nov 2005 07:07:48 -0800 (PST) Received: by 10.64.76.16 with HTTP; Thu, 17 Nov 2005 07:07:48 -0800 (PST) Message-ID: Date: Thu, 17 Nov 2005 15:07:48 +0000 From: Cornelis Swanepoel To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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 15:07:50 -0000 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 for my code? If anyone can point me in the right direction I would greatly appreciate it= . Thanks Cornelis