Re: CDrom, nodisc, eject

From: Jens Axboe (axboe@suse.de)
Date: Sun Apr 09 2000 - 16:13:27 EST


On Fri, Apr 07 2000, Wakko Warner wrote:
> I'm using a Yamaha 8424S scsi on an adaptec aha-2940U with 2.2.13 kernel no
> patches. eject scd5 (the cdrw I listed above) with no cd in the drive
> doesn't work, here's a trace:
>
> open("/dev/scd5", O_RDONLY|O_NONBLOCK) = 3
> ioctl(3, CDROMEJECT, 0xbffffaac) = 671088642
> ioctl(3, FIBMAP, 0xbffff970) = -1 EACCES (Permission denied)
> ioctl(3, FDEJECT, 0xbffffaac) = -1 EINVAL (Invalid argument)
> ioctl(3, MTIOCTOP, 0xbffffa70) = -1 EINVAL (Invalid argument)
> write(2, "eject: unable to eject, last err"..., 53eject: unable to eject,
> last error: Invalid argument
> ) = 53
> _exit(1) = ?

CDROMEJECT returns 671088642 = 28000002h, that is command timed out.
sr_do_ioctl should not return a scsi "internal" error, I'll look into
it.

As to why the eject command fails here, I don't know. I've never known
it to fail here, I'll look into this as well.

-- 
*  Jens Axboe <axboe@suse.de>
*  Linux CD/DVD-ROM, SuSE Labs
*  http://kernel.dk

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:12 EST