[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |