WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH][XEND/XM]Fix error reporting when restoring a second

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH][XEND/XM]Fix error reporting when restoring a second domain with same name.
From: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Date: Thu, 24 May 2007 17:04:31 +0200
Delivery-date: Thu, 24 May 2007 08:03:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AceeFNSMxyChJDERTa6Sx3/lHVeKvQ==
Thread-topic: [PATCH][XEND/XM]Fix error reporting when restoring a second domain with same name.
When restoring a domain with a name that already exists, "xm restore"
would say "Restore failed", despite the nice descriptive error being
created by the _checkName function that detects this error condition. 

The attached patch forwards the error from Xend to the xm command, and
thus allows the actual error message to be shown to the user. I looked
at the code in "create" and I think this is doing the right thing. 

--
Mats

Attachment: patch.fix_error_reporting_restore
Description: patch.fix_error_reporting_restore

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH][XEND/XM]Fix error reporting when restoring a second domain with same name., Petersson, Mats <=