On 17/03/2008, Jeff Dike <[EMAIL PROTECTED]> wrote: > On Fri, Mar 14, 2008 at 11:59:38PM +0100, Flavio wrote: > > Let me give you the strace eject /dev/ubd2 again, it may helps you to > > understand. > > (I don't know if it's the same strace I posted before) > > > It changed from > > > > > > ioctl(3, CDROMEJECT, 0) = -1 EINVAL (Invalid argument) > > > to > > > > ioctl(3, CDROMEJECT, 0) = -1 EIO (Input/output error) > > > Maybe that's an improvement. > > Can you do a strace -e ioctl on UML while you try eject inside UML? Thanks Jeff, here's the output:
~# strace -e ioctl eject /dev/ubd2 ioctl(3, CDROMEJECT, 0) = -1 EIO (Input/output error) ioctl(3, SG_GET_VERSION_NUM, 0x7f7f85f82c) = -1 EINVAL (Invalid argument) ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 not an sg device, or old sg driver ioctl(3, FDEJECT, 0x40577980) = -1 EINVAL (Invalid argument) ioctl(3, MGSL_IOCGPARAMS or MTIOCTOP or SNDCTL_MIDI_MPUMODE, 0x7f7f864490) = -1 EINVAL (Invalid argument) eject: unable to eject, last error: Invalid argument Process 1139 detached Sincerely, Flavio > > My patch just passes the ioctl along to the host, so it looks like the > host is returning -EIO now. > > > Jeff > > -- > Work email - jdike at linux dot intel dot com > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user