From owner-freebsd-arch Fri Jul 14 9:15:46 2000 Delivered-To: freebsd-arch@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 7253637C8B5; Fri, 14 Jul 2000 09:15:42 -0700 (PDT) (envelope-from jlemon@flugsvamp.com) Received: (from jlemon@localhost) by prism.flugsvamp.com (8.9.3/8.9.3) id LAA41521; Fri, 14 Jul 2000 11:20:35 -0500 (CDT) (envelope-from jlemon) Date: Fri, 14 Jul 2000 11:20:35 -0500 From: Jonathan Lemon To: Chris Costello Cc: Neil Blakey-Milner , Dag-Erling Smorgrav , Adrian Chadd , Matthew Dillon , Andrzej Bialecki , freebsd-arch@FreeBSD.ORG Subject: Re: SysctlFS Message-ID: <20000714112035.C12492@prism.flugsvamp.com> References: <20000712144510.A11316@ywing.creative.net.au> <200007130537.WAA29614@apollo.backplane.com> <20000714112117.D17372@ywing.creative.net.au> <20000714053540.A30847@holly.calldei.com> <20000714124327.A64283@mithrandr.moria.org> <20000714055311.C30847@holly.calldei.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <20000714055311.C30847@holly.calldei.com> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Jul 14, 2000 at 05:53:11AM -0500, Chris Costello wrote: > On Friday, July 14, 2000, Neil Blakey-Milner wrote: > > kqueue can do this (watching for permission changes) easily. It can > > also get notified when a new file appears - either from the kernel, or > > from watching the directory. > > Does kqueue return full information on files when they're > updated or when files are added? Or do you need to read in the > whole /dev directory each time a directory update event is > received? Right now, there is only a filter for the FFS filesystem, and due to its semantics, when an inode is changed, we don't know what pathname was used to reference the inode. However, if a filter was written for a devfs, there is no reason that it can't behave differently in this case; presumably it would be easier to map a dev_t back into a canonical name, since the implementation would not be the same as FFS. -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message