Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: ubc and removable devices
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ubc and removable devices



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

References: 
 >ubc and removable devices (From: Joel Reymont <email@hidden>)
 >Re: ubc and removable devices (From: Mike Mackovitch <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.