Hi there,
I think there is a problem in ide-cd.c? It determines the same
(magic number) as for toc-capacity for ALL DVDs, which is 449849
no matter what the size of DVD. Which is, off course too small,
barely enough to handle only the first video file for most of the
DVD titles. It works fine for CDs.
I don't know where the problem is, probably in cdrom_read_toc
function (I'm not a kernel expert). As for quick&dirty hacking, I
changed ide_cdrom_revalidate as folows:
/*HWIF(drive)->gd->sizes[minor] = toc->capacity * BLOCKS_PER_FRAME;*/
HWIF(drive)->gd->sizes[minor] = ide_cdrom_capacity(drive) /
SECTORS_PER_FRAME * BLOCKS_PER_FRAME;
ide_cdrom_capacity seems to be working fine. However, the source
of problem still needs to be identified.
Other info:
(root@zbd) /usr/src/linux/drivers/ide [9] # uname -a
Linux zbd.mit.edu 2.4.0-test7 #6 Sat Aug 26 01:02:03 EDT 2000 i686 unknown
(root@zbd) /usr/src/linux/drivers/ide [10] # cat /proc/ide/hdd/model
LG DVD-ROM DRD-8080B
Taylan
---=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=---
Taylan Akdogan Massachusetts Institute of Technology
akdogan@mit.edu Department of Physics
---=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=---
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:21 EST