Messages in this thread | | | Date | Tue, 15 Aug 2000 04:22:12 +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: > >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)? > > But cdrom_read_toc is the routine that called this in > the first place. That would create an infinite loop. Here, again, > is the call graph from my original email:
Ah duh, it's way too late here. Your fix should suffice for now, I'll split cdrom_read_toc and the toc handling into something a bit more organized (you probably noted the mess).
-- * 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/
| |