Re: ubc and removable devices
Re: ubc and removable devices
- Subject: Re: ubc and removable devices
- From: Mike Mackovitch <email@hidden>
- Date: Tue, 10 Nov 2009 08:11:52 -0800
On Tue, Nov 10, 2009 at 08:03:17AM -0800, Mike Mackovitch wrote:
> On Mon, Nov 09, 2009 at 08:32:08PM +0000, Joel Reymont wrote:
> > Do I correctly understand that the UBC pages responsible for a
> > removable device get evicted when said device is ejected?
>
> vnodes have a "struct ubc_info" that associate them with the
> corresponding VM objects. When a file system is unmounted all
> the vnodes are disassociated from the file system (vclean())
> which includes cleaning up the UBC reference (ubc_destroy_named()).
>
> So, yes.
Technically speaking: the vnodes/UBC get cleaned up on the file system
unmount... and not the device ejection. So, an unmount/mount would suffice.
The *device* doesn't need to be physically ejected/removed/reattached.
--macko
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden