Re: USB CD Eject Failures

From: Hans Petter Selasky <hps_at_selasky.org>
Date: Thu, 17 Feb 2022 09:11:34 UTC
On 2/17/22 03:31, Sean Bruno wrote:
> Been playing around with sysutils/eject to automate some media backup 
> stuff.
> 
> I note that "after a number of ejects" the USB 2 CD drive will cease 
> responding.  I don't think its a race to failure, it acts like resource 
> starvation/leak.  Seems fairly reproducible, if someone gets to it 
> before I do, let me know.
> 
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261961
> 
> I suspect that something has changed in the 12 years since 
> sysutils/eject was last looked at and the CDIOCEJECT case in 
> sys/cam/scsi_cd.c probably needs an eyeball.
> 
> The close tray command also seems nonfunctional, which probably means 
> that a data structure has changed or something else that I haven't 
> started at in quite some time.
> 
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261936
> 

Hi,

You can trace all USB SCSI commands with "usbdump".

--HPS