From owner-freebsd-hackers Sat Jul 20 0:48:27 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 E83D437B400 for ; Sat, 20 Jul 2002 00:48:25 -0700 (PDT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id B592C43E3B for ; Sat, 20 Jul 2002 00:48:25 -0700 (PDT) (envelope-from baka@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1921) id 8A02FAE216; Sat, 20 Jul 2002 00:48:25 -0700 (PDT) Date: Sat, 20 Jul 2002 00:48:25 -0700 From: Jon Mini To: Sean Hamilton Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Filesystem hook Message-ID: <20020720074825.GG31134@elvis.mu.org> References: <001501c22fa7$fd418a50$f019e8d8@slugabed.org> <20020720072237.GF31134@elvis.mu.org> <001d01c22fbe$b39bf770$f019e8d8@slugabed.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001d01c22fbe$b39bf770$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 Sat, Jul 20, 2002 at 12:26:01AM -0700, Sean Hamilton wrote: > > 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. That is basically the only approach available. This becomes a problem if you want to watch an entire filesystem, but it works great for small portions of the tree. The impact on the system is just the same as if you were to poll(2) or select(2) all of those nodes, except that your process only allocates one descriptor for the kqueue, not one for each node. -- Jonathan Mini http://www.freebsd.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message