Re: FSGetVolumeMountInfoSize returns error -36?
Re: FSGetVolumeMountInfoSize returns error -36?
- Subject: Re: FSGetVolumeMountInfoSize returns error -36?
- From: Chris Suter <email@hidden>
- Date: Fri, 20 Aug 2010 07:40:53 +1000
Hi James,
On Fri, Aug 20, 2010 at 2:10 AM, James Bucanek
<email@hidden> wrote:
I agree that your solution is simpler, and (in retrospect) I'm sure it would work just fine. I considered something like that when I began, but that solution makes an awful lot of assumptions--assumptions about how the OS names devices, assumptions about how those names relate to hierarchal organization of those devices, and so on. That was more assumptions that I was conformable making.
I wasn't making any assumptions. The code that allocates BSD device names is open source and it uses the IORegistry hierarchy to choose the unit numbers. When it encounters an IOMedia object with the “wholeDisk” property set to true, it allocates a new base unit number. If you’re interested, look at IOMediaBSDClient.cpp which is part of IOStorageFamily.
I suppose you could argue that they might change the way it works, but I think that is very unlikely—it would probably break other things, and I can’t see why they would need or want to.
Kind regards,
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden