• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: USB Mass Storage: command size limits
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: USB Mass Storage: command size limits


  • Subject: Re: USB Mass Storage: command size limits
  • From: Chris Sarcone <email@hidden>
  • Date: Thu, 26 Jun 2008 09:31:37 -0700

Andy --

Why does the mac never send commands larger than 128kB to a USB mass
storage device?

By default, most USB storage devices have issues due to Windows not sending large I/Os.

You should check the IOUSBMassStorageClass code which allows you to specify keys in the SCSI Device Charateristics dictionary including max block count or max byte count (i.e. you don't have to write any code to do this).

I was wondering if I could tweak this for our USB device, which can
support bigger commands. However it looks like the traffic is limited by
IOBlockStorageDriver.

Yes, you can and should.

How could I change the behaviour of IOBlockStorageDriver? I can subclass
and instantiate IOBlockStorageServices from a custom LUN driver, but how
could I cause a subclass of IOBlockStorageDriver to be loaded for my
device?

Refer to the IOUSBMassStorageClass and you can look at information in AppleStorageDrivers plugins that shows how some device overrides enable different I/O sizes...

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

  • Follow-Ups:
    • RE: USB Mass Storage: command size limits
      • From: "Andy Green" <email@hidden>
    • RE: USB Mass Storage: command size limits
      • From: "Andy Green" <email@hidden>
References: 
 >USB Mass Storage: command size limits (From: "Andy Green" <email@hidden>)

  • Prev by Date: Re: st_ctimespec not implemented?
  • Next by Date: Re: st_ctimespec not implemented?
  • Previous by thread: Re: USB Mass Storage: command size limits
  • Next by thread: RE: USB Mass Storage: command size limits
  • Index(es):
    • Date
    • Thread