From: Mark Pryor Subject: 4.5 patch: xendomains noise to stderr in rdname() Date: Sat, 13 Dec 2014 01:34:14 +0000 (UTC) Message-ID: <104017455.78913.1418434454763.JavaMail.yahoo@jws10624.mail.bf1.yahoo.com> Reply-To: Mark Pryor Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5886123611713459533==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel List-Id: xen-devel@lists.xenproject.org --===============5886123611713459533== Content-Type: multipart/alternative; boundary="----=_Part_78912_2053105263.1418434454760" Content-Length: 2489 ------=_Part_78912_2053105263.1418434454760 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Instead of tracking down which commit involving libxl* which prints all kin= d of noiseto stderr, I will post a workaround.=20 If you build, install, and use 4.5 this bug will drive you mad, so here it = is: -------------------- snip ----------------- --- a/tools/hotplug/Linux/xendomains.in+++ b/tools/hotplug/Linux/xendomains= .in @@ -175,7 +175,7 @@ contains_something() =C2=A0# read name from xen config file =C2=A0rdname() =C2=A0{ -=C2=A0=C2=A0=C2=A0 NM=3D$($CMD create --quiet --dryrun --defconfig "$1" | +=C2=A0=C2=A0=C2=A0 NM=3D$($CMD create --quiet --dryrun --defconfig "$1" 2>= &1 | =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sed -n 's/^.*(name \= (.*\))$/\1/p;s/^.*"name": "\(.*\)",$/\1/p') =C2=A0} ------=_Part_78912_2053105263.1418434454760 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Instead of tracking down which commit involv= ing libxl* which prints all kind of noise
to stderr, = I will post a workaround.

If you build, install, and use 4.5 this bug will drive you mad, so her= e it is:
-= ------------------- snip -----------------
--- a/tools/hotplug/Linux/xendomains.in
+++ b/too= ls/hotplug/Linux/xendomains.in
@@ -175,7 +175,7 @@= contains_something()
 # read name from xen c= onfig file
 rdname()
 {
-    NM=3D$($CMD create --= quiet --dryrun --defconfig "$1" |
+  &nb= sp; NM=3D$($CMD create --quiet --dryrun --defconfig "$1" 2>&1 |
         = sed -n 's/^.*(name \(.*\))$/\1/p;s/^.*"name": "\(.*\)",$/\1/p')
 }


------=_Part_78912_2053105263.1418434454760-- --===============5886123611713459533== 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.xen.org http://lists.xen.org/xen-devel --===============5886123611713459533==--