Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Mar 2003 11:55:39 -0800 (PST)
From:      Julian Elischer <julian@elischer.org>
To:        "Douglas K. Rand" <rand@meridian-enviro.com>
Cc:        grip-users@lists.sourceforge.net, freebsd-multimedia@freebsd.org
Subject:   Re: Ejecting an empty drive
Message-ID:  <Pine.BSF.4.21.0303181153440.79971-100000@InterJet.elischer.org>
In-Reply-To: <87n0jt72yq.wl@bemidji.meridian-enviro.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I found this muself..
if it's scsi you have the option of camcontrol which allows
you to open an empty drive 
(maybe you can do it with an atapi drive too with atapi-cam code..)

problem is that cdcontrol won't even start up if there is no TOC to
read..


On Mon, 17 Mar 2003, Douglas K. Rand wrote:

> I'm having a mild problem with Grip 3.0.5 on FreeBSD 4.7: It won't
> open the CD-ROM try if the drive is empty.  I just start grip without
> having a disk in the CD-ROM drive, and the eject button doesn't
> work. If I start grip with a disk in the CD-ROM drive, the eject
> button works.
> 
> I've tried this with faulty_eject set to both 0 and 1, with no
> change. 
> 
> I've traced the source, and the only difference seems to be that if
> grip thinks there is a disk in the drive, it runs CDStop before
> CDEject. So, I added a CDStop call at line 1211 and 1215 of cdplay.c,
> and that didn't change anything.
> 
> Working with gdb shows that in both cases (empty and non-empty drives)
> CDEject executes:
> 
>     if(ioctl(disc->cd_desc,CDIOCALLOW)<0)
>         printf(_("Unlock failed: %d"),errno);
> 
>     if(ioctl(disc->cd_desc,CDIOCEJECT)<0) {
>         printf(_("CDIOCEJECT"));
>         return FALSE;
>     }
> 
> I'm kinda stumped right now.
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-multimedia" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0303181153440.79971-100000>