On Monday, March 4, 2002, at 04:56 PM, Ian Brown wrote: I am looking for a way to update inode information whenever an open() call is made to an HFS+ file. Specifically I would like to keep a counter in the inode that counts the number of open() calls made to that file. Does anyone have any ideas on how to go about this? Regards, Ian What exactly are you trying to do? Is this total number of open() calls for a file counter? Does it persist across reboot? Are you planning on decrementing the counter when close() is called? If so, What do you intend to do for the case open() mmap() close() Now you counter goes to 0, but the inode is still in use... --Umesh -- Umesh Vaishampayan Apple Computer, Inc. Mac OS X Kernel Ph: (408) 974 0229 _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.