Re: cdrom eject fails in 2.2.2-ac7

Jens Axboe (axboe@image.dk)
Sun, 07 Mar 1999 16:20:35 +0100


Keith Bennett wrote:
> okay. i upgraded eject. now i get (for 'strace eject -r /dev/hdc'):
>
> open("/etc/mtab", O_RDONLY) = 3
> fstat(3, {st_mode=0, st_size=0, ...}) = 0
> mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
> 0x4000b000
> read(3, "/dev/hdb1 / ext2 rw 0 0\nnone /p"..., 4096) = 508
> read(3, "", 4096) = 0
> close(3) = 0
> munmap(0x4000b000, 4096) = 0
> open("/dev/hdc", O_RDONLY|O_NONBLOCK) = 3
> ioctl(3, CDROMEJECT, 0xbffffab8) = -1 EBUSY (Device or resource
> busy)
> write(2, "eject: unable to eject, last err"..., 60eject: unable to eject,
> last error: Device or resource busy
> ) = 60
> _exit(1)

The Uniform layer will return -EBUSY if the eject is not the only
device using the device. Are you running a cd player in the
background?

-- 
*  Jens Axboe <axboe@image.dk>
*  Linux CD-ROM Maintainer
* "The only thing that interferes with my
*  learning is my education." -- A. Einstein

- 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/