From: Masaki Kanno Subject: [PATCH][RFC] Fix help option of xm create Date: Thu, 21 Sep 2006 22:11:18 +0900 Message-ID: <78C6DD7F6D3815kanno.masaki@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-1CKpb5B2kuad0xKoUXxZT" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-1CKpb5B2kuad0xKoUXxZT Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit Content-Description: Mail message body Hi, I found strange behaviors and messages when tested the following commands. - xm create --help [config file] - xm create --help_config [config file] - xm help create # xm create --help Usage: create [options] [vars] Create a domain (snip) addresses for virtual network interfaces. This must be a unique value across the entire cluster. Error: Cannot open config file "xmdefconfig" # xm create --help /xen/vm1.conf Usage: create [options] [vars] Create a domain. (snip) addresses for virtual network interfaces. This must be a unique value across the entire cluster. Using config file "/xen/vm1.conf". The following are automically imported: import sys import os import os.path from xen.util.ip import * # xm create --help_config /xen/vm1.conf Using config file "/xen/vm1.conf". The following are automically imported: import sys import os import os.path from xen.util.ip import * # xm help create Usage: create [options] [vars] Create a domain. (snip) addresses for virtual network interfaces. This must be a unique value across the entire cluster. Error: Cannot open config file "xmdefconfig" I made this patch not to display these messages. But I'm wondering whether my approach is right, and the "/etc/xen/xmdefconfig" should be created to solve this problem. I need any comments about this matter or reason why the help_config option's behavior. Signed-off-by: Masaki Kanno Best regards, Kan --Boundary-1CKpb5B2kuad0xKoUXxZT Content-Type: application/octet-stream; name="help_create.patch" Content-Disposition: attachment; filename="help_create.patch" Content-Transfer-Encoding: base64 ZGlmZiAtciBkOGJjZWNhNWYwN2QgdG9vbHMvcHl0aG9uL3hlbi94bS9jcmVhdGUucHkKLS0t IGEvdG9vbHMvcHl0aG9uL3hlbi94bS9jcmVhdGUucHkJTW9uIFNlcCAxOCAxODoxNzo1NCAy MDA2ICswMTAwCisrKyBiL3Rvb2xzL3B5dGhvbi94ZW4veG0vY3JlYXRlLnB5CVR1ZSBTZXAg MTkgMTY6Mjk6MzggMjAwNiArMDkwMApAQCAtMTAyMiw4ICsxMDIyLDYgQEAgZGVmIHBhcnNl Q29tbWFuZExpbmUoYXJndik6CiAgICAgaWYgZ29wdHMudmFscy5oZWxwOgogICAgICAgICBn b3B0cy51c2FnZSgpCiAgICAgaWYgZ29wdHMudmFscy5oZWxwIG9yIGdvcHRzLnZhbHMuaGVs cF9jb25maWc6Ci0gICAgICAgIGdvcHRzLmxvYWRfZGVmY29uZmlnKGhlbHA9MSkKLSAgICBp ZiBnb3B0cy52YWxzLmhlbHAgb3IgZ29wdHMudmFscy5oZWxwX2NvbmZpZzoKICAgICAgICAg cmV0dXJuIChOb25lLCBOb25lKQogCiAgICAgaWYgbm90IGdvcHRzLnZhbHMuZGlzcGxheToK --Boundary-1CKpb5B2kuad0xKoUXxZT Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-1CKpb5B2kuad0xKoUXxZT--