From owner-freebsd-hackers Sat Jul 20 0:26: 4 2002 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 C5D5137B400 for ; Sat, 20 Jul 2002 00:26:02 -0700 (PDT) Received: from priv-edtnes16-hme0.telusplanet.net (defout.telus.net [199.185.220.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BEEB43E31 for ; Sat, 20 Jul 2002 00:26:01 -0700 (PDT) (envelope-from sh@planetquake.com) Received: from dbs ([216.232.25.240]) by priv-edtnes16-hme0.telusplanet.net (InterMail vM.5.01.04.02 201-253-122-122-102-20011128) with SMTP id <20020720072600.MARR5909.priv-edtnes16-hme0.telusplanet.net@dbs> for ; Sat, 20 Jul 2002 01:26:00 -0600 Message-ID: <001d01c22fbe$b39bf770$f019e8d8@slugabed.org> From: "Sean Hamilton" To: References: <001501c22fa7$fd418a50$f019e8d8@slugabed.org> <20020720072237.GF31134@elvis.mu.org> Subject: Re: Filesystem hook Date: Sat, 20 Jul 2002 00:26:01 -0700 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 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Subject: Re: Filesystem hook > On Fri, Jul 19, 2002 at 09:43:25PM -0700, Sean Hamilton wrote: > > Greetings, > > > > In Windows, there is a filesystem hook, ie, applications can ask to be > > notified about changes to a given file system / structure. Thus, a directory > > listing could automatically update, etc. > > > > Does FreeBSD offer a similar mechanism? > > Yes, the kevent(2) interface allows you to listen for events on a vnode. > However, there is no way to request for events of its children (e.g. > subdirectories). Thanks, I also got another reply saying the same. Looks like it does what I want, and a fair bit more. I suppose I could just recurse and open a bunch of these if I needed to -- are there limits? I'll check the man page. sh To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message