From owner-freebsd-cluster Thu Jul 26 11:17:36 2001 Delivered-To: freebsd-cluster@freebsd.org Received: from prism.flugsvamp.com (cb58709-a.mdsn1.wi.home.com [24.17.241.9]) by hub.freebsd.org (Postfix) with ESMTP id B930237B409; Thu, 26 Jul 2001 11:17:21 -0700 (PDT) (envelope-from jlemon@flugsvamp.com) Received: (from jlemon@localhost) by prism.flugsvamp.com (8.11.0/8.11.0) id f6QIGAB27185; Thu, 26 Jul 2001 13:16:10 -0500 (CDT) (envelope-from jlemon) Date: Thu, 26 Jul 2001 13:16:09 -0500 From: Jonathan Lemon To: Alexander Leidinger Cc: gabriel_ambuehl@buz.ch, freebsd-isp@freebsd.org, freebsd-cluster@freebsd.org, jlemon@freebsd.org Subject: Re: Monitoring a FS with kevent (was: Re: Redundant setup on a budget??) Message-ID: <20010726131609.K7716@prism.flugsvamp.com> References: <19297458367.20010726142352@buz.ch> <200107261742.f6QHgXv06426@Magelan.Leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <200107261742.f6QHgXv06426@Magelan.Leidinger.net> Sender: owner-freebsd-cluster@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Jul 26, 2001 at 07:42:32PM +0200, Alexander Leidinger wrote: > On 26 Jul, Gabriel Ambuehl wrote: > > >>> On the first glance it looks pretty complex but... > >> It depends... > > > > Read through it a bit more concentrated today and found it probably > > doesn't help anyway: > > > > EVFILT_VNODE Takes a file descriptor as the identifier and the > > events > > to watch for in fflags, and returns when one or > > more of > > the requested events occurs on the descriptor. > > The events > > to monitor are: > > > > I interpret this like it's good for monitoring single vnodes, but not > > entire filesystem. > > Yes, you have to walk through the entire FS and request a notification > for every file or directory. But perhaps the developer (CCed) is able to > add the "monitor the entire FS for me" functionality in the kernel... > > Jonathan, we are talking about soft-realtime mirroring of an entire FS > (or doing something like realtime-tripwire). That functionality would be nice to have (e.g.: for something like cvsupd), but currently isn't handled by kqueue(). As described above, EVFILT_VNODE monitors files (or directories) so you'd have to open each directory you wanted to monitor. This isn't ideal; suggestions on how things *should* work would be appreciated. One of the main problems is that when the actual event happens (at the vnode level), you only have the inode to identify things by, the pathname used is long gone. -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-cluster" in the body of the message