Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Closing an IOUserClient



I have an IOUserClient subclass whose provider is a file system filter.
When the file system is unloaded/unmounted the user client remains
connected. This causes Disk Utility and friends to be unhappy operating
on the disk (ie partitioning).

I would have expected the terminate() set of calls to cause the user
client to unload. The UserClient is not being called at all during unmounting.

Further testing shows that unmounting a file system doesn't actually
remove the kext (it's above the partition layer). My suspicion is that
unmounting a file system is much different than unloading the kext.

More testing shows that unloading the kext does cause the IOUserClient
to be terminated and closed. 

Unfortunately, Disk Utility and friends can't operate on the disk until
the IOUserClient instance is closed. I get a "Resource Busy" error.

How should I handle this situation? I figure I can track IOUserClient
instances, but how would I know that I need to disconnect them?

Thanks for the tips,

 ...Duane

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.