Re: Trying again: Question concerning Tiger->Leopard changes for unformatted BSD disk device.
Re: Trying again: Question concerning Tiger->Leopard changes for unformatted BSD disk device.
- Subject: Re: Trying again: Question concerning Tiger->Leopard changes for unformatted BSD disk device.
- From: Chris Sarcone <email@hidden>
- Date: Thu, 8 May 2008 11:13:39 -0700
Hi --Thanks, Chris. for the diagnosis. I've sniffed the USB connection, and the first Mode Sense command (the 10 byte one) is responded to with a stall and then the 6 byte one is responded to with data (along with a "good" CSW). I've looked at the IOSCSIArchitectureModelFamily source (the latest available one is from 10.3.9, right?), and I see that the routine is looking at the either the fourth byte--offset 3 (for the 10 byte command reponse) or the third byte -- offset 2 (for the six byte command reponse), for the high-order bit for the write-protect status (and honestly, I don't see that the bit is on in the data). Can I assume the 10.5 version is similar, or was there some big change at 10.5? I've looked on the web (like in the USB Bulk-only Transport spec, for instance), but haven't found much information on the format of the "mode pages" or whatever the response to the mode sense command(s) are called. Can you suggest some documenation on this topic so I can advise the device vendor on how to fix this? Thanks again.
Sure. The MODE SENSE command is documented in the SPC-3 specification. You can find a copy at http://www.t10.org. The format for the mode pages are in SPC-3 and SBC-2. The specific field we're looking for in this case is in the mode parameter header (labelled DEVICE SPECIFIC PARAMETER) and can be found in SBC-2.
HTH,
-- Chris
------------------ 6 Infinite Loop M/S 306-2MS Cupertino CA 95014 phone: (408) 974-4033 fax: (408) 862-7577 email: email@hidden |
_______________________________________________
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