Re: kfreebsd-i386 wont honor eject from the command line; requires button
Hi,
DAVID Henderson wrote:
> There is something wrong regarding the kfreebsd-i386 eject command .
Looking at https://packages.debian.org/sid/eject i see
a common source tarball for Linux and kFreeBSD
http://ftp.de.debian.org/debian/pool/main/e/eject/eject_2.1.5+deb1+cvs20081104.orig.tar.gz
File eject.c has only one provision for __FreeBSD_kernel__:
#include <sys/cdio.h>
which should define macro CDIOCEJECT.
(e.g. in http://fxr.watson.org/fxr/source/sys/cdio.h?v=FREEBSD92)
This should later trigger the second case of
#if defined(CDROMEJECT)
status = ioctl(fd, CDROMEJECT);
#elif defined(CDIOCEJECT)
status = ioctl(fd, CDIOCEJECT);
So first one should check whether CDROMEJECT is really not
defined and whether ioctl(fd, CDIOCEJECT) is really performed.
Have a nice day :)
Thomas
Reply to: