Re: DVD capacity bug for IDE CD's in linux-2.4.0-test6

From: Jens Axboe (axboe@suse.de)
Date: Mon Aug 14 2000 - 19:31:04 EST


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/



This archive was generated by hypermail 2b29 : Tue Aug 15 2000 - 21:00:35 EST