Re: I/O in my Filesystem causing application crashes.
Re: I/O in my Filesystem causing application crashes.
- Subject: Re: I/O in my Filesystem causing application crashes.
- From: Quinn <email@hidden>
- Date: Mon, 28 Jul 2003 23:01:09 +0100
At 16:42 -0700 21/7/03, email@hidden wrote:
I would, however, like to find some documentation for
"cluster_pagein" and "cluster_pageout" - an overview of the unified
buffer cache would be nice as well...
If your file system supports caching, the cluster_xxx calls are the
way to go. All you have to do is direct your
VOP_READ/WRITE/PAGEIN/PAGEOUT calls to the corresponding cluster_xxx
calls, implement VOP_CMAP and VOP_STRATEGY and all the hard work is
done. This is how both HFS Plus and AppleShare work (at least, for
AppleShare, in the non-cached case) and it makes the read/write path
very easy.
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.