On Wed, Mar 19, 2008 at 09:39:13PM +0100, Flavio wrote:
> On 19/03/2008, Jeff Dike <[EMAIL PROTECTED]> wrote:
> > On Tue, Mar 18, 2008 at 08:17:52PM +0100, Flavio wrote:
> >  > Ok, I applied your last patch. I've done the test, and this is the 
> > result:
> >  > ioctl(16, CDROMEJECT, 0)                = -1 EIO (Input/output error)
> >
> >
> > I want that 0 to be a 1.  Are you sure you applied the patch?  The
> >  relevant line in ubd_kern.c should be
> >
> >                 return os_ioctl_generic(ubd_dev->fd, CDROMEJECT, arg);
> # cat arch/um/drivers/ubd_kern.c|grep os_ioctl_generic
>                 return os_ioctl_generic(ubd_dev->fd, CDROMEJECT, arg);
> 
> It seems the patch has been applied. Isn't it?

Yup - I'm mystified as to why arg == 1 isn't happening with the UML.
Can you change the "arg" to just a literal "1" and see what the strace
looks like?

                        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

Reply via email to