Hi Steve,

As the submitter of this bug, I'd like to correct some info;
I installed 7.6.0 Wheezy kfreebsd-i386 selecting the 9.0-2-686 kernel.

Just to make sure I didn't have a cockpit error, I verified it with:
root@hpdkfre:/boot/grub# ls /boot
config-9.0-2-686  grub kfreebsd-9.0-2-686.gz

I was using whatever version of eject executable that got installed with
the system. It was never updated with aptitude.



On Tue, Oct 21, 2014 at 12:07 PM, Steven Chamberlain <ste...@pyro.eu.org>
wrote:

> Package: eject
> Version: 2.1.5+deb1+cvs20081104-13
> Severity: grave
> User: debian-...@lists.debian.org
> Usertags: kfreebsd
> User: debian...@lists.debian.org
> Usertags: gift
> X-Debbugs-Cc: debian-...@lists.debian.org, dghkd...@gmail.com
>
> Hi,
>
> I'm creating an actual bug ticket for this issue, reported at:
> https://lists.debian.org/debian-bsd/2014/10/msg00278.html
> and further discussed here:
> https://lists.debian.org/debian-bsd/2014/10/msg00287.html
>
> I'm leaving this tagged 'gift', as a nice easy bug that a relative
> beginner to kfreebsd can try to take a look at:
>
> On 20/10/14 20:54, DAVID Henderson wrote:
> > Ejecting /media/cdrom from the Debian kfreebsd-i386 command line results
> > in an io error.
> > The media in the cdrom tray is Wheezy 7.0.0 kfreebsd-i386 DVD 1.
>
> > root@hpdkfre:~# eject /media/cdrom
> > eject: unable to eject, last error: Input/output error
>
> It would be helpful to know ASAP what version of the kfreebsd kernel and
> eject utility are affected.  The reporter only mentioned wheezy;  there
> were 8.3 and 9.0 kernels in wheezy and I'm not sure which was used.  And
> is sid/jessie affected?
>
> eject should be a very simple C program.  Actually ejecting a CD-ROM
> drive probably involves only a single ioctl.
>
> I suggest to try `camcontrol eject cd0` (from freebsd-utils) to see if
> that works right.
>
> Perhaps use the ktrace and kdump tools to see the ioctl being used by
> eject or by camcontrol, and compare.  Or use gdb if you're familiar.
>
> See here how ioctl calls are encoded:
>
> https://www.freebsd.org/cgi/man.cgi?query=ioctl&apropos=0&sektion=2&manpath=FreeBSD+10.0-RELEASE&arch=i386&format=html
> http://fxr.watson.org/fxr/source/sys/ioccom.h?v=FREEBSD10#L36
>
> And some other useful services are:
> http://codesearch.debian.net/
> http://sources.debian.net/
>
> Thanks, have fun!
> Regards,
> --
> Steven Chamberlain
> ste...@pyro.eu.org
>
>

Reply via email to