Re: Figuring out context of file in an IOFilterScheme driver
On 16 Jul 2013, at 17:27, Misha Pak <darwin-kernel@oktavist.com> wrote:
Is there still a way to obtain that information via some other, "side" information?
No. The problem is that disk I/O can be initiated from all sorts of unusual environments (like async I/O, and the VM subsystem) where out-of-band context information, like the current process, are not useful. That's why VFS plug-ins get a vfs_context_t parameter, but that information is not passed down to the I/O Media layer.
There just HAS to be a way to do some sort of file-based filtering in the kernel... :-)
I admire your confidence (-: Share and Enjoy -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Quinn The Eskimo!