Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Sep 1999 08:53:10 -0700 (PDT)
From:      John Polstra <jdp@polstra.com>
To:        John-Mark Gurney <gurney_j@resnet.uoregon.edu>
Cc:        current@FreeBSD.ORG
Subject:   Re: An FS question perhaps... non blocking I/O.
Message-ID:  <XFMail.990917085310.jdp@polstra.com>
In-Reply-To: <19990916232849.35971@hydrogen.fircrest.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.990917085310.jdp>