• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Does File System Event Exist?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does File System Event Exist?


  • Subject: Re: Does File System Event Exist?
  • From: Trevor Strohman <email@hidden>
  • Date: Tue, 6 May 2003 12:24:17 -0700

James Powell wrote:

> The general case is harder. One might picture a file system that
> maintains a list of listeners for a certain file, but because this
> would either add overhead to all file operations (is this file in the
> list?) or be so limited as to be useless (tell me when there is a
> change to the file with this inode) it wouldn't be a good feature in an
> OS.

I think there is some middle ground here--really the "is this file in the list" check only needs to be performed on file open, or on all open files when the filter is installed. From then on, the file system just needs to check the inode structure during each file operation to see if someone wants a notification.

File system notification is an extremely nice feature, but I've never seen it work very well. I'm not a file systems expert, so I can't be sure why--notification systems I've used just seem to be unreliable. It's too bad too, because I seem to come up with a use for reliable file system notifications about once a year...

Trevor Strohman
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: add row NSTableView
  • Next by Date: Re: add row NSTableView
  • Previous by thread: Does File System Event Exist?
  • Next by thread: Factory AutoRelease
  • Index(es):
    • Date
    • Thread