From owner-freebsd-current Fri Sep 17 8:53:17 1999 Delivered-To: freebsd-current@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id C3D9614EF5 for ; Fri, 17 Sep 1999 08:53:12 -0700 (PDT) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.1) with ESMTP id IAA00580; Fri, 17 Sep 1999 08:53:10 -0700 (PDT) (envelope-from jdp@polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.9.3/8.9.1) id IAA50913; Fri, 17 Sep 1999 08:53:10 -0700 (PDT) (envelope-from jdp@polstra.com) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <19990916232849.35971@hydrogen.fircrest.net> Date: Fri, 17 Sep 1999 08:53:10 -0700 (PDT) Organization: Polstra & Co., Inc. From: John Polstra To: John-Mark Gurney Subject: Re: An FS question perhaps... non blocking I/O. Cc: current@FreeBSD.ORG Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John-Mark Gurney wrote: > John Polstra scribbled this message on Sep 12: >> >> Just to avoid duplicated effort: I currently have work in progress >> on a "fslog" pseudo-device. It enables you to monitor a filesystem >> and receive notifications for all interesting changes to files and >> directories. This includes reads, writes, renames, file creations, >> unlinks, links, etc. -- anything that changes the stat(2) results >> for a file, or causes directory entries to be created, destroyed, or >> changed. The device itself is working, but so far I have implemented >> the support for only a few of the event types. It won't take much >> more work to finish it. > > ugh, why aren't you extending poll to work on files and directories to > get this info?? it would make MUCH more sense to extend poll to do this.. > > any specific reason why it wasn't done this way? Yes. Last time I checked, our CVS repository contained 50,000 files in 13,000 directories. Somehow the thought of a 63,000-element pollfd array leaves me cold. Sometimes you want to know about all changes in a whole tree of files. Poll isn't well-suited for that. John --- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "No matter how cynical I get, I just can't keep up." -- Nora Ephron To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message