lkml.org 
[lkml]   [2000]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectide-cd: problem at toc->capacity for DVD?
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/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.042 / U:3.508 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site