Messages in this thread | | | Date | Tue, 15 Aug 2000 02:31:04 +0200 | From | Jens Axboe <> | Subject | Re: 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/
| |