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] Fix xm save command for a inactive managed domain

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix xm save command for a inactive managed domain
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Thu, 05 Jul 2007 21:50:10 +0900
Delivery-date: Thu, 05 Jul 2007 05:48:13 -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
Hi,

I tried to test wrong operations on purpose.

1. When I tried xm save command to a inactive managed domain, 
   I saw the following error message. The error message did not 
   have a domain name. 

 # xm list vm1
 Name                                        ID   Mem VCPUs      State   Time(s)
 vm1                                              512     2                 0.0
 # xm save vm1 /xen/save.vm1
 Error: Domain '' does not exist.

2. When I tried xm save command to Domain-0, I saw the following 
   error message. 

 # xm save Domain-0 /xen/save.Domain-0
 Error: int argument required
 Usage: xm save [-c] <Domain> <CheckpointFile>
 
 Save a domain state to restore later.
   -c, --checkpoint               Leave domain running after creating
                                  snapshot

I made a patch.  It solved the problems. 

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan

Attachment: xm_save.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>