Denis Vlasenko wrote: > On Friday 02 September 2005 23:47, Ondrej Zary wrote: > >>Hello, >>I've bought "new" LS-120 drive and found that software eject does not >>work with 2.6.13 kernel: >>root@pentium:~# eject /dev/hdc >>eject: unable to eject, last error: Invalid argument >> >>The drive spins up and after a while the command fails. >>This appears in dmesg after each eject attempt: >> hdc: unknown partition table >>ide-floppy: hdc: I/O error, pc = 1b, key = 5, asc = 24, ascq = 0 >> >>When I boot 2.4.31, eject works fine. > > > Can you probive something narrower than 2.4.31 -> 2.6.13 jump? The problem is caused by idefloppy_ioctl() function which *first* tries generic_ide_ioctl() and *only* if it fails with -EINVAL, proceeds with the specific ioctls. This patch fixes it by first going through the internal ioctls and only trying generic_ide_ioctl() if none of them matches. Signed-off-by: Ondrej Zary -- Ondrej Zary