From: Jeff Dike <jdike@addtoit.com>
To: Blaisorblade <blaisorblade@yahoo.it>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] When opening /tmp/uml.ctl fails, what do we get?
Date: Thu, 22 Feb 2007 12:42:01 -0500 [thread overview]
Message-ID: <20070222174201.GD3396@ccure.user-mode-linux.org> (raw)
In-Reply-To: <200702220054.04938.blaisorblade@yahoo.it>
On Thu, Feb 22, 2007 at 12:54:04AM +0100, Blaisorblade wrote:
> Looking into the code, I saw that:
> 1) daemon_user_init is confusing because it saved any error into pri->fd,
> instead of returning it to the caller.
Yup.
> Also, it would make sense to move this into daemon_open.
The current behavior is on purpose. The thinking is that device
initialization is equivalent to plugging a box into a switch. The
device isn't up (and the box might in fact be turned off). Bringing
the interface up comes later, as a separate step.
You may be right, and we can talk about it, but the current code is no
accident.
> 2) connect_to_switch uses the same errno twice - it shouldn't, and we're
> hitting this. um_interrupt is called with fd => 0 because errno is cleared
> after printk (verified under debugging, I did not trace it fully to where
> it's changing but it's sufficient for a patch anyway).
We've seen this before, and I thought I made a pass over all of UML
and fixed everything. Sigh.
Jeff
--
Work email - jdike at linux dot intel dot com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2007-02-22 17:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-21 23:54 [uml-devel] When opening /tmp/uml.ctl fails, what do we get? Blaisorblade
2007-02-22 17:42 ` Jeff Dike [this message]
2007-02-22 19:59 ` Jeff Dike
2007-03-04 19:13 ` Blaisorblade
2007-03-05 15:51 ` Jeff Dike
2007-03-05 18:27 ` Blaisorblade
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070222174201.GD3396@ccure.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=blaisorblade@yahoo.it \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.