lkml.org 
[lkml]   [2000]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: DVD capacity bug for IDE CD's in linux-2.4.0-test6
On Mon, Aug 14 2000, Adam J. Richter wrote:
> No.
>
> However, adding the following to the beginning of
> cdrom_get_toc_entry in ide/ide-cd.c does eliminate the problem:
>
> if (!CDROM_STATE_FLAGS(drive)->toc_valid)
> return -EINVAL;

That's a bit rough, though. How about something like

if (!CDROM_STATE_FLAGS(drive)->toc_valid) {
int ret = cdrom_read_toc(drive, NULL);
if (ret)
return ret;
}

so the toc entry is read and the toc itself refreshed. Does that work
as well (note untested, just typed it above)?

--
* Jens Axboe <axboe@suse.de>
* SuSE Labs

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

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.032 / U:0.540 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site