All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yang Hongyang <yanghy@cn.fujitsu.com>
To: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>,
	Xen-devel <xen-devel@lists.xensource.com>,
	Vincent Hanquez <Vincent.Hanquez@eu.citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: [PATCH] xl: allow nameless domains to be named
Date: Wed, 26 May 2010 08:45:53 +0800	[thread overview]
Message-ID: <4BFC6F41.2050306@cn.fujitsu.com> (raw)
In-Reply-To: <4BFC369A.7070100@goop.org>

Hi jeremy,

On 05/26/2010 04:44 AM, Jeremy Fitzhardinge wrote:
> At present, find_domain() will exit(2) if you specify a domain by
> number, but that domain doesn't have a corresponding name.  However,
> nothing seem to critically depend on common_domname being set, and the
> test prevents dom0 or other nameless domains from being named.  So just
> remove the check.

Thank you, for now, remove the check seems to be the solution.

> 
> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>

Acked-by: Yang Hongyang <yanghy@cn.fujitsu.com>

> 
> diff -r ba7fdd53f44c tools/libxl/xl_cmdimpl.c
> --- a/tools/libxl/xl_cmdimpl.c	Tue May 25 13:37:20 2010 -0700
> +++ b/tools/libxl/xl_cmdimpl.c	Tue May 25 13:40:53 2010 -0700
> @@ -138,10 +138,6 @@
>          exit(2);
>      }
>      common_domname = was_name ? p : libxl_domid_to_name(&ctx, domid);
> -    if (!common_domname) {
> -        fprintf(stderr, "%s is an invalid domain identifier.\n", p);
> -        exit(2);
> -    }
>  }
>  
>  #define LOG(_f, _a...)   dolog(__FILE__, __LINE__, __func__, _f "\n", ##_a)
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
> 
> 


-- 
Regards
Yang Hongyang

      reply	other threads:[~2010-05-26  0:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-25 20:44 [PATCH] xl: allow nameless domains to be named Jeremy Fitzhardinge
2010-05-26  0:45 ` Yang Hongyang [this message]

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=4BFC6F41.2050306@cn.fujitsu.com \
    --to=yanghy@cn.fujitsu.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=Vincent.Hanquez@eu.citrix.com \
    --cc=jeremy@goop.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /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.