On Sat, Dec 06, 2003 at 12:40:51PM -0700, Scott Long wrote: > Mathew Kanner wrote: > >On Dec 06, Lefteris Chatzibarbas wrote: > >>The pct variable is always 0, even after the blanking of the CD-RW is > >>finished (according to the device's LEDs), so the program falls into an > >>infinite loop. > > > > I have the exact same problem. It stays stuck in the loop > >because ioctl(fd, CDRIOGETPROGRESS, &pct) pct is always 0. > > I'm seeing this too. What's odd is that my cd drive is reporting back > incorrect sense information; the valid bit is not set, the asc/ascq is > suspect (4/8), and the sense key specific data is all 0. Since other > fields in the sense data are reasonable, it's not as if no sense data is > being returned at all. So it looks like the CDRIOGETPROGRESS ioctl > handler is doing the right thing, but the cd drive is not. Maybe the > driver is doing something wrong when it issues the erase command, but > I can't convince myself that that is likely. The attached patch seems to correct the problem (at least for me). It is similar to what was done in revision 1.137 of sys/dev/ata/atapi-cd.c (this has been changed since revision 1.138).
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:33 UTC