Re: Kernel -> user boundary
Re: Kernel -> user boundary
- Subject: Re: Kernel -> user boundary
- From: Umesh Vaishampayan <email@hidden>
- Date: Mon, 3 Feb 2003 10:51:45 -0800
On Saturday, February 1, 2003, at 03:39 AM, George Andri wrote:
This is now fixed, read below.
Umesh Vaishampayan wrote:
Why can't you do what you want to do in *your* VOP_INACTIVE?
I can't do it in VOP_INACTIVE because that's (usually) called way
later,
mostly when we eject the drive. But since this driver is a hot
pluggable
device, the user can just yank the device out bypassing our filtering.
Also that would not get you immediate results.
In that case, make sure you flush all the user data from VM page cache
and the meta data from the buffer cache and from your inode cache on
every close. This will impact the performance but will reduce the risk
of file system corruption when the user "yanks the device" without
"ejecting" it first .
--Umesh
--
Umesh Vaishampayan
Mac OS X - Kernel
_______________________________________________
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.