xen-devel
[Xen-devel] Re: [PATCH]: xl: Check a domain exists before destroying it
On Tue, 2011-01-25 at 17:07 +0000, Ian Jackson wrote:
> Gianni Tedesco writes ("[PATCH]: xl: Check a domain exists before destroying
> it"):
> > This is quite a clever fix but I think Ian Jacksons comments are
> > correct. We should do a libxl_domain_info() and bail early in the
> > destroy path if that fails.
>
> Thanks, I have applied the libxl part of this patch.
>
> The xl_cmdimpl part:
> > Also fix a mis-formatted error message in xl destroy command.
> misses three other similar mistakes.
>
> $ egrep '\\n.\"' tools/libxl/*.c
> tools/libxl/xl_cmdimpl.c: if (rc) { fprintf(stderr,"destroy failed
> (rc=%d)\n.",rc); exit(-1); }
> tools/libxl/xl_cmdimpl.c: if (rc) { fprintf(stderr,"shutdown failed
> (rc=%d)\n.",rc);exit(-1); }
> tools/libxl/xl_cmdimpl.c: if (rc) { fprintf(stderr,"reboot failed
> (rc=%d)\n.",rc);exit(-1); }
> tools/libxl/xl_cmdimpl.c: if (rc) { fprintf(stderr,"core dump failed
> (rc=%d)\n.",rc);exit(-1); }
> $
>
> Also in general most of the messages from xl don't print full stops.
> So I suggest the patch below instead.
Good call, I must have barfed my regexp when I searched for the same
error...
Gianni
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH]: xl: Check a domain exists before destroying it, (continued)
- [Xen-devel] [PATCH]: xl: Check a domain exists before destroying it, Gianni Tedesco
- [Xen-devel] [PATCH, v2]: xl: Check domain existance when doing domain identifier lookups, Gianni Tedesco
- [Xen-devel] Re: [PATCH, v2]: xl: Check domain existance when doing domain identifier lookups, Stefano Stabellini
- [Xen-devel] Re: [PATCH, v2]: xl: Check domain existance when doing domain identifier lookups, Gianni Tedesco
- [Xen-devel] Re: [PATCH, v2]: xl: Check domain existance when doing domain identifier lookups, Stefano Stabellini
- [Xen-devel] Re: [PATCH, v2]: xl: Check domain existance when doing domain identifier lookups, Ian Jackson
- [Xen-devel] Re: [PATCH, v2]: xl: Check domain existance when doing domain identifier lookups, Ian Jackson
- [Xen-devel] Re: [PATCH, v2]: xl: Check domain existance when doing domain identifier lookups, Gianni Tedesco
- [Xen-devel] Re: [PATCH, v2]: xl: Check domain existance when doing domain identifier lookups, Ian Jackson
- [Xen-devel] Re: [PATCH]: xl: Check a domain exists before destroying it, Ian Jackson
- [Xen-devel] Re: [PATCH]: xl: Check a domain exists before destroying it,
Gianni Tedesco <=
- [Xen-devel] Re: [PATCH]: xl: Check a domain exists before destroying it, Ian Jackson
Re: [Xen-devel] Xen 4.1 rc1 test report (xl bits), Stefano Stabellini
Re: [Xen-devel] Xen 4.1 rc1 test report (xl bits), Gianni Tedesco
Re: [Xen-devel] Xen 4.1 rc1 test report, Haitao Shan
|
|
|