Re: FSGetVolumeMountInfoSize returns error -36?
Re: FSGetVolumeMountInfoSize returns error -36?
- Subject: Re: FSGetVolumeMountInfoSize returns error -36?
- From: Chris Suter <email@hidden>
- Date: Thu, 19 Aug 2010 15:59:56 +1000
Hi Jim,
On Thu, Aug 19, 2010 at 3:15 PM, Jim Luther
<email@hidden> wrote:
As Quinn mentioned earlier, that won't catch all cases -- it only finds the simple cases.
Yes, I know. I mentioned it too in an earlier e-mail.
For example, if I mount a disk image from an image file that's on my hard disk (/dev/disk0s5), the mounted image volume is on a different device (/dev/disk3).
Simply walking up the IORegistry hierarchy won't work either. Disk images aren't anchored under the physical device that they're stored on. If you wanted to handle disk images, it looks like you'd have to use the image-path key in IOHDIXHDDrive, and the image could of course be within another disk image so you'd need to cater for that. Likewise, software RAID volumes aren't anchored under every physical device, just one particular one I believe, so if you wanted to be thorough, you'd have to figure out what disks were members of the RAID scheme and then iterate through them.
For the original problem, the solution I suggested would be adequate, and in my opinion, a good deal simpler.
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