Comment 8 for bug 11517

Revision history for this message
Martin Pitt (pitti) wrote :

(In reply to comment #6)
> Created an attachment (id=3509) [edit]
> output of strace eject -v /dev/sdb1 2> eject-strace.txt

OK, you have:
  open("/dev/sdb1", O_RDONLY|O_NONBLOCK) = 3
  ioctl(3, CDROMEJECT, 0x806c150) = -1 EIO (Input/output error)

On my system this looks like:
  open("/dev/sda1", O_RDONLY|O_NONBLOCK) = 3
  ioctl(3, CDROMEJECT, 0x2aaaaaef6380) = 0

The CD-ROM eject command usually works fine for USB devices, and I never saw it
fail on amd64 and powerpc.

So this is not actually an eject bug, it tries its best to eject the device.
Interestingly enough it seems to work when being executed as root. Ben, does the
kernel have any capability/privilege checking that sometimes makes ejection fail?