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

From: Tobias Ringstrom (zajbot@goteborg.utfors.se)
Date: Thu Apr 06 2000 - 17:45:52 EST


Jens Axboe wrote:
> > 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.

Nice. In the meantime I can eject the CD using the eject program if
the CD seems stuck.

> > 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.

I first tried it on a mixed CD, but the address of track one plus the
size of track one exceeded the start of track two. I only found this
on one CD. On other CDs it returned one block too little. I'll have
another look at it sometime. I'll also try it on more readers to see
if the results are consistent and reliable.

/Tobias

-
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:17 EST