Re: [PATCH] usb gadget: remove size limitation for storage cdrom

Alan Stern
2015-03-09T14:39:47Z

On Mon, 9 Mar 2015, Alan Stern wrote:

> > They are both iso9660 images, aren't they? So from data image point
> > of view there's no difference, it is not worth to create another mode
> > for dvd data.
>
> There's more to emulation than just the image. We have to emulate the
> hardware's response to all the applicable commands. CD players have a
> different command set from DVD players (or at least, different from DVD
> players when a DVD is inserted). For example, see the definition in
> the MSF format for READ TOC command.

Or to put it another way: The change you want to make would break the
store_cdrom_address() routine in storage_common.c.

Alan Stern