john.levon@sun.com
2007-Jan-17 02:43 UTC
[Xen-devel] [PATCH] Cleanup some dead code in XendConfig
# HG changeset patch # User john.levon@sun.com # Date 1169005426 28800 # Node ID 9e244ca38dee0407b69dd82e5b05314064664484 # Parent ce6684b05b953bf1ef88495883c30485b5407a5b Cleanup some dead code in XendConfig. Signed-off-by: John Levon <john.levon@sun.com> diff --git a/tools/python/xen/xend/XendConfig.py b/tools/python/xen/xend/XendConfig.py --- a/tools/python/xen/xend/XendConfig.py +++ b/tools/python/xen/xend/XendConfig.py @@ -1118,10 +1118,10 @@ class XendConfig(dict): # attempt to extract extra arguments from SXP config arg_ip = sxp.child_value(image_sxp, ''ip'') - if arg_ip and not re.search(r''ip=[^ ]+'', kernel_args): + if arg_ip: kernel_args += ''ip=%s '' % arg_ip arg_root = sxp.child_value(image_sxp, ''root'') - if arg_root and not re.search(r''root='', kernel_args): + if arg_root: kernel_args += ''root=%s '' % arg_root # user-specified args must come last: previous releases did this and _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ewan Mellor
2007-Jan-18 15:13 UTC
Re: [Xen-devel] [PATCH] Cleanup some dead code in XendConfig
On Tue, Jan 16, 2007 at 07:43:59PM -0700, John Levon wrote:> # HG changeset patch > # User john.levon@sun.com > # Date 1169005426 28800 > # Node ID 9e244ca38dee0407b69dd82e5b05314064664484 > # Parent ce6684b05b953bf1ef88495883c30485b5407a5b > Cleanup some dead code in XendConfig. > > Signed-off-by: John Levon <john.levon@sun.com> > > diff --git a/tools/python/xen/xend/XendConfig.py b/tools/python/xen/xend/XendConfig.py > --- a/tools/python/xen/xend/XendConfig.py > +++ b/tools/python/xen/xend/XendConfig.py > @@ -1118,10 +1118,10 @@ class XendConfig(dict): > > # attempt to extract extra arguments from SXP config > arg_ip = sxp.child_value(image_sxp, ''ip'') > - if arg_ip and not re.search(r''ip=[^ ]+'', kernel_args): > + if arg_ip: > kernel_args += ''ip=%s '' % arg_ip > arg_root = sxp.child_value(image_sxp, ''root'') > - if arg_root and not re.search(r''root='', kernel_args): > + if arg_root: > kernel_args += ''root=%s '' % arg_root > > # user-specified args must come last: previous releases did this andThis isn''t supposed to be dead code, but your previous patch to handle the kernel_args broke the re.search calls. Alastair Tse has a patch to fix this properly, so that the command line does not continuously grow. Ewan. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
John Levon
2007-Jan-18 15:17 UTC
Re: [Xen-devel] [PATCH] Cleanup some dead code in XendConfig
On Thu, Jan 18, 2007 at 03:13:56PM +0000, Ewan Mellor wrote:> This isn''t supposed to be dead code, but your previous patch to handle the > kernel_args broke the re.search calls. Alastair Tse has a patch to fix this > properly, so that the command line does not continuously grow.Hmm, I haven''t been seeing that, possibly because I always use the bootloader? Sorry for the breakage, anyway. regards john _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ewan Mellor
2007-Jan-18 15:30 UTC
Re: [Xen-devel] [PATCH] Cleanup some dead code in XendConfig
On Thu, Jan 18, 2007 at 03:17:41PM +0000, John Levon wrote:> On Thu, Jan 18, 2007 at 03:13:56PM +0000, Ewan Mellor wrote: > > > This isn''t supposed to be dead code, but your previous patch to handle the > > kernel_args broke the re.search calls. Alastair Tse has a patch to fix this > > properly, so that the command line does not continuously grow. > > Hmm, I haven''t been seeing that, possibly because I always use the > bootloader? Sorry for the breakage, anyway.Yes, possibly because you always use the bootloader. Also, the problem only manifests itself if you use root= or ip= on the command line. Ewan. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel