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?
(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: O_NONBLOCK) = 3
open("/dev/sdb1", O_RDONLY|
ioctl(3, CDROMEJECT, 0x806c150) = -1 EIO (Input/output error)
On my system this looks like: O_NONBLOCK) = 3
open("/dev/sda1", O_RDONLY|
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. privilege checking that sometimes makes ejection fail?
Interestingly enough it seems to work when being executed as root. Ben, does the
kernel have any capability/