Re: Find network mounted DVD's
Re: Find network mounted DVD's
- Subject: Re: Find network mounted DVD's
- From: Lee Ann Rucker <email@hidden>
- Date: Thu, 21 Apr 2011 12:09:52 -0700
kIOPropertyPhysicalInterconnectLocationKey isn't an IOService, it's an IOProperty. You need to find the IORegistry entry that has those properties with those values. (Sorry, I can't help with that part; I barely understand it myself.)
Look in IORegistryExplorer, open the drawer that lets you modify the Find Options, turn on Property Keys and Values and search for those properties, that'll show how it all fits together.
On Apr 21, 2011, at 11:02 AM, P Teeson wrote:
> Thanks for that idea. So what is it that I am not understanding?
> As Michael said is IOKit just for physically attached discs?
> Is the network mounted disc not a virtual disc accessed via an HBA emulator driver?
>
> Here's what I did:
> (0) On her Mac inserted a DVD into her Apple Optical Reader. It mounted.
> (1) On my Mac connected, via our wired LAN, to her machine (the server)
> Finder/Go/Connect to Server...
> (2) Selected the DVD and it mounted on my machine.
> Get Info shows afp://Sweetheart._afpovertcp._tcp.local
> It appears with this icon which implies it is a disc.
> <PastedGraphic-4.tiff>
> (3) In a terminal window typed
> ls /Volumes
> It showed up ... but
> diskutil list
> does not show it.
>
> Moreover it does not seem to appear in the IORegistry (at least under that key).
> This code does not return an iterator for it.
> classesToMatch = IOServiceMatching(kIOPropertyPhysicalInterconnectLocationKey);
> result = IOServiceGetMatchingServices(kIOMasterPortDefault,classesToMatch, &dvdDeviceList);
> assert(result == KERN_SUCCESS);
>
> // Is there more than one device
> io_object_t dvdDevice;
> int i = 0;
> while (dvdDevice = IOIteratorNext(dvdDeviceList)) { i++; }
> assert(i == 1); // We anticipate only one physical device
> NOTE: i is in fact 0.
>
> Michael suggested a solution of iterating through Volumes looking for a Video_TS folder.
> One of the code samples uses that technique so I was aware of it.
>
> However I would like to understand more about why it is not in the IORegistry.
> Or if it is where to look for it. For a long time during the development of this project
> I have been using the Developer Utility IORegistryExplorer.
> Can't seem to see whether it actually has an entry for network mounted drives
> nor which plane to find it in. And the Singh book so far hasn't helped me.
>
> Sigh...
>
> TIA for suggestions...
>
> Peter
>
> On 2011-04-19, at 4:25 PM, Lee Ann Rucker wrote:
>> You can spot an Apple Remote Disc by looking for
>>
>> kIOPropertyPhysicalInterconnectLocationKey = "Network"
>> kIOPropertyProductNameKey = "Disc Image"
>>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden