Re: [PATCH] IDE block device trouble, mostly CD-related

From: Jens Axboe (axboe@suse.de)
Date: Thu Apr 06 2000 - 10:16:48 EST


On Tue, Apr 04 2000, Tobias Ringström wrote:
[snipped a lot]
> This is what I found (linux-2.3.99-pre3):

Beatiful, very nice work! Some of this stuff was on my todo-for-2.4
list (particularly the session/minor stuff, very broken as you noted).
I'll apply, and send off.

> One surprising thing is I cannot eject the disc with the eject button
> directly after reading the capacity (cat /proc/ide/hdc/capacity).
> After I read something from the disc, I can eject it again. I cannot
> explain this.

I haven't sent off the locking fixes I have in my tree, basically
cdrom_queue_packet_command() ends up relocking way too much and
sometimes when it shouldn't.

> I think that the idea of using "partitions" for tracks/sessions is a
> good idea, if it can be done correctly. Probably only data tracks
> should be made visible. It would be really nice to find out the true
> sizes of the tracks (e.g. excluding the post-gap crap), to avoid read
> errors at the end of the track. I tried to use the
> GPCMD_READ_TRACK_RZONE_INFO command to do this, but it did not return
> reliable values. Any ideas of how to do this?

GPCMD_READ_TRACK_RZONE_INFO should return very reliable information,
but it will only work on newer drives.

-- 
*  Jens Axboe <axboe@suse.de>
*  Linux CD/DVD-ROM, SuSE Labs
*  http://kernel.dk

- 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 : Fri Apr 07 2000 - 21:00:16 EST