From owner-freebsd-hackers Sat Jul 20 0:22:39 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 128F037B400 for ; Sat, 20 Jul 2002 00:22:38 -0700 (PDT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA90A43E4A for ; Sat, 20 Jul 2002 00:22:37 -0700 (PDT) (envelope-from baka@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1921) id B26AEAE216; Sat, 20 Jul 2002 00:22:37 -0700 (PDT) Date: Sat, 20 Jul 2002 00:22:37 -0700 From: Jon Mini To: Sean Hamilton Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Filesystem hook Message-ID: <20020720072237.GF31134@elvis.mu.org> References: <001501c22fa7$fd418a50$f019e8d8@slugabed.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001501c22fa7$fd418a50$f019e8d8@slugabed.org> User-Agent: Mutt/1.3.27i 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 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). -- Jonathan Mini http://www.freebsd.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message