On 18/03/2008, Jeff Dike <[EMAIL PROTECTED]> wrote:
> On Mon, Mar 17, 2008 at 09:50:43PM +0100, Flavio wrote:
>  > Here's the strace log file attached to this mail.
>  > Note that it's a compressed text file (as you can see), but once it
>  > has been uncompressed, it occupies about 75 MBytes.
>
>
> This is the relevant bit:
>      ioctl(16, CDROMEJECT, 0)                = -1 EIO (Input/output error)
>
>  CDROMEJECT doesn't work on the host, so it's not going to work from
>  inside UML.
eject /dev/cdrom on the host works very well also when UML is running.
If I do that inside the UML machine (eject /dev/ubd2) doesn't work and
produces the messages I've already posted.
I continue to see the following message in the strace log file, after
doing the eject command.
ioctl(16, CDROMEJECT, 0)                = -1 EIO (Input/output error)


>
>  As a sanity-check, you can do this again, look for the line above, and
>  make sure the file descriptor (16 in this case) refers to /dev/cdrom.
>  Look in /proc/<pid>/fd for the same pid that you strace.
I don't know why I don't have the /proc/16 directory.
As a matter of fact I don't know how to exactly verify if the fd 16
refers to /dev/cdrom (maybe there's some file to cat).

>
>  As another sanity-check, strace eject running on the host.  It's
>  possible that CDROMEJECT fails the same way and one of its fallbacks
>  works.  In that case, I just need to make UML use the same fallbacks.
As I said before, eject perfectly works on the host.
This is the strace 'eject /dev/cdrom' output related to the above line:
ioctl(3, CDROMEJECT, 0x1)               = 0
And the directory /proc/3/ exists on the host.

Only for your reminder, the bind option to use the cdrom device into
uml is always ubd2=/dev/cdrom passed as a kernel command line option.

Best regards,

Flavio

>
>
>                       Jeff
>
>  --
>  Work email - jdike at linux dot intel dot com
>

On 18/03/2008, Jeff Dike <[EMAIL PROTECTED]> wrote:
> (Forgot to mention - I can see you're running with skas4.  Nice work,
>  and I trust it's working well for you...)
Hehe! That's really great! I'm also happy to run UML on my amd64 as
well as on x86 distributions. It is also very fast! Thank you so much!

Flavio

>
>
>                  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