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

From: Alan Stern
Date: Mon Mar 09 2015 - 10:39:54 EST


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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/