Re: [regression] CD-DA delay needed after insertion(http://bugzilla.kernel.org/show_bug.cgi?id=10974)

From: Geert Uytterhoeven
Date: Tue Sep 30 2008 - 10:51:51 EST


On Tue, 30 Sep 2008, Monty Montgomery wrote:
> Fixed in SVN; pull a copy and try again.
>
> [Mein Gott, that bug was just embarrassing]

With latest cdparanoia git-^H^H^H^Hsvn, the problem still happens.
After applying the patch below, there's no more crash thanks to your last
commit, and It Just Works(tm):

eject; sg_start -i -l /dev/scd0; cdparanoia -d /dev/scd0 -Z -q 1-1[:1] /dev/null || echo failed

diff --git a/interface/scan_devices.c b/interface/scan_devices.c
index bfe5403..df08906 100644
--- a/interface/scan_devices.c
+++ b/interface/scan_devices.c
@@ -614,7 +614,7 @@ cdrom_drive *cdda_identify_scsi(const char *generic_device,

if(specialized_device) {
if(use_sgio)
- i_fd=open(specialized_device,O_RDWR|O_NONBLOCK);
+ i_fd=open(specialized_device,O_RDONLY);
else
i_fd=open(specialized_device,O_RDONLY|O_NONBLOCK);
}

With kind regards,

Geert Uytterhoeven
Software Architect

Sony Techsoft Centre Europe
The Corporate Village  Da Vincilaan 7-D1  B-1935 Zaventem  Belgium

Phone: +32 (0)2 700 8453
Fax: +32 (0)2 700 8622
E-mail: Geert.Uytterhoeven@xxxxxxxxxxx
Internet: http://www.sony-europe.com/

A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 Â RPR Brussels
Fortis  BIC GEBABEBB  IBAN BE41293037680010