[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] tools/hotplug: fix bug on xendomains using xl



Il 21/01/2014 14:56, Ian Campbell ha scritto:
On Tue, 2014-01-21 at 14:51 +0100, Fabio Fantoni wrote:
Make rdname function work with xl

Signed-off-by: Fabio Fantoni <fabio.fantoni@xxxxxxx>
Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

Although I would have preferred a slightly more verbose changelog.

This patch fix this problem:
http://lists.xen.org/archives/html/xen-devel/2014-01/msg01545.html
and perhaps also other problems.

I have done extensive testing with the addition of this patch without encountering errors, can it be added to the 4.4?

Thanks for any reply.

---
  tools/hotplug/Linux/init.d/xendomains |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/hotplug/Linux/init.d/xendomains 
b/tools/hotplug/Linux/init.d/xendomains
index 38371af..59f1e3d 100644
--- a/tools/hotplug/Linux/init.d/xendomains
+++ b/tools/hotplug/Linux/init.d/xendomains
@@ -186,7 +186,7 @@ contains_something()
  rdname()
  {
      NM=$($CMD create --quiet --dryrun --defconfig "$1" |
-         sed -n 's/^.*(name \(.*\))$/\1/p')
+         sed -n 's/^.*(name \(.*\))$/\1/p;s/^.*"name": "\(.*\)",$/\1/p')
  }
rdnames()



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.