Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Nov 2005 17:16:35 +0100 (CET)
From:      Soeren Straarup <xride@x12.dk>
To:        Cornelis Swanepoel <rools.ster@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Filesystem monitoring question
Message-ID:  <20051117171543.A39634@x12.dk>
In-Reply-To: <a9f55af40511170707n3dd70429t48d85acf9b3be5f4@mail.gmail.com>
References:  <a9f55af40511170707n3dd70429t48d85acf9b3be5f4@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
  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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051117171543.A39634>