On Mon, 10 Dec 2012, Golmer Palmer wrote: > Alan Stern <stern@...> writes: > > > > > On Mon, 10 Dec 2012, Golmer Palmer wrote: > > > > > Now, another comment related to the "storage_common.c" file: > > > > > > Why the limit of "if (num_sectors >= 256*60*75*4)" in function > "fsg_lun_open()". > > > > The limit is 256*60*75 = 1152000. > > > > > From my point of view (please, correct me if I wrong!), this are 1,152,000 > > > sectors. With a 99 minutes (900MB) CD-ROMs, the limit are 445,000 sectors. > > > > Right. This limit represents a hypothetical 256-minute CD. > > 256 minutes CD, ok! (75 represents 75 sectors/sec) Yes. > > > Nevertheless, with a DVD the maximum sectors are 4,173,824 (DVD-9 DL). So > why > > > this limit? As we can supose that the driver can work with a DVD ISO image, > why > > > not increase the limit to DVD specs? > > > > Although the driver can work with a DVD ISO image, it does not emulate > > a DVD. Only a CD. > > Yes, not a DVD. But if you "mount" a DVD image with the cdrom emulation, it > works! So, please, update the limit to 950*60*75 (4,275,000 sectors). This is an > hypothetical 950 minutes CD-ROM, with a size bigger than a DVD-9 "DATA" disk. I can't. The CD spec requires that under certain conditions, block addresses on the device be presented in "MSF" format, where M is minutes, S is seconds, and F is frames, and each occupies a single byte. There's no way to represent more than 255 minutes. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html