libxl_json: Fix backport of JSON_BOOL to 4.2.2
PATCH 1/1 libxl_json: Fix backport of JSON_BOOL to 4.2.2
Commit 2b3072ed0cbeed8c0385f20e92ba0f1201db8a17 has the setting of obj->u.b Commit 6a2aca9fdef0499e613715baf107f2296b9007cf does not.
This shows up by vnc-port and vnc-listen are missing in xenstore when they should not be.
--- tools/libxl/libxl_json.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
tools/libxl/libxl_json.c +1 -0
@@ -474,6 +474,7 @@ static int json_callback_boolean(void *opaque, int boolean)if ((obj =libxl__json_object_alloc (ctx->gc,JSON_BOOL )) ==NULL )return 0 ; + obj->u.b = boolean;if (libxl__json_object_append_to (ctx->gc, obj, ctx->current) ==-1 ) {libxl__json_object_free (ctx->gc, obj);
Signature · 1 line
1.7.1
Looks like I had an issue with the mailer I used, and this did not get to anyone at citrix.com. Resending via a different SMTP server.
-Don Slutz
Quoted 22 lines · Don Slutz
Commit
2b3072ed0cbeed8c0385f20e92ba0f1201db8a17has the setting ofobj->u.bCommit6a2aca9fdef0499e613715baf107f2296b9007cfdoes not.This shows up by vnc-port and vnc-listen are missing in xenstore when they should not be.
Signed-off-by Don Slutz <[email protected]>--- tools/libxl/libxl_json.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)tools/libxl/libxl_json.c +1
-0@@ -474,6 +474,7 @@ static int json_callback_boolean(void *opaque, int boolean)if ((obj =libxl__json_object_alloc (ctx->gc,JSON_BOOL )) ==NULL )return 0 ; + obj->u.b = boolean;if (libxl__json_object_append_to (ctx->gc, obj, ctx->current) ==-1 ) {libxl__json_object_free (ctx->gc, obj);
Quoted 30 lines · Don Slutz
Looks like I had an issue with the mailer I used, and this did not get to anyone at citrix.com. Resending via a different SMTP server.
-Don SlutzQuoted 1 line · Don Slutz
Commit
2b3072ed0cbeed8c0385f20e92ba0f1201db8a17has the setting of
obj->u.bQuoted 3 lines
Commit
6a2aca9fdef0499e613715baf107f2296b9007cfdoes not.This shows up by vnc-port and vnc-listen are missing in xenstore when
they should not be.
tools/libxl/libxl_json.c static int json_callback_boolean(void *opaque,
Quoted 11 lines
Signed-off-by Don Slutz <[email protected]>--- tools/libxl/libxl_json.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)tools/libxl/libxl_json.c +0
-0@@ -474,6 +474,7 @@ static int json_callback_boolean(void *opaque,int boolean)
tools/libxl/libxl_json.c static int json_callback_boolean(void *opaque, · line 474
Quoted 2 lines
tools/libxl/libxl_json.c +0
-0if ((obj = libxl__json_object_alloc(ctx->gc, JSON_BOOL)) ==NULL)
tools/libxl/libxl_json.c static int json_callback_boolean(void *opaque, int boolean)
Quoted 4 lines
tools/libxl/libxl_json.c +1
-0return 0 ; + obj->u.b = boolean; if (libxl__json_object_append_to(ctx->gc, obj, ctx->current) ==
Quoted 8 lines
-1) {
tools/libxl/libxl_json.c static int json_callback_boolean(void *opaque, int boolean) · line 480
Quoted 1 line
tools/libxl/libxl_json.c +0
-0libxl__json_object_free (ctx->gc, obj);_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Could you also include in the commit description not just the git commit id but also also the title of said patches? Thanks
Signature · 1 line
Sent from my Android phone. Please excuse my brevity.
Quoted 31 lines · Konrad Rzeszutek Wilk
Quoted 29 lines · Don Slutz
Looks like I had an issue with the mailer I used, and this did not get to anyone at citrix.com. Resending via a different SMTP server.
-Don SlutzQuoted 1 line · Don Slutz
Commit
2b3072ed0cbeed8c0385f20e92ba0f1201db8a17has the setting of
obj->u.bQuoted 3 lines
Commit
6a2aca9fdef0499e613715baf107f2296b9007cfdoes not.This shows up by vnc-port and vnc-listen are missing in xenstore when
they should not be.
tools/libxl/libxl_json.c static int json_callback_boolean(void *opaque,
Quoted 10 lines
Signed-off-by Don Slutz <[email protected]>--- tools/libxl/libxl_json.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)tools/libxl/libxl_json.c +0
-0@@ -474,6 +474,7 @@ static int json_callback_boolean(void *opaque,int boolean)
tools/libxl/libxl_json.c static int json_callback_boolean(void *opaque, · line 474
Quoted 2 lines
tools/libxl/libxl_json.c +0
-0if ((obj = libxl__json_object_alloc(ctx->gc, JSON_BOOL)) ==NULL)
Quoted 4 lines
tools/libxl/libxl_json.c +1
-0return 0 ; + obj->u.b = boolean; if (libxl__json_object_append_to(ctx->gc, obj, ctx->current) ==
Quoted 8 lines
Quoted 7 lines
-1) {
tools/libxl/libxl_json.c static int json_callback_boolean(void *opaque, int boolean) · line 480
Quoted 1 line
tools/libxl/libxl_json.c +0
-0libxl__json_object_free (ctx->gc, obj);_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-develCould you also include in the commit description not just the git commit id but also also the title of said patches? Thanks
How does this look:
Commit 2b3072ed0cbeed8c0385f20e92ba0f1201db8a17 has the setting of
obj->u.b
libxl_json: Replace JSON_TRUE/FALSE by JSON_BOOL.
Commit 6a2aca9fdef0499e613715baf107f2296b9007cf does not.
libxl_json: Replace JSON_TRUE/FALSE by JSON_BOOL.
This shows up by vnc-port and vnc-listen are missing in xenstore
when they should not be.
for the commit message?
-Don Slutz
Quoted 50 lines · Don Slutz
Quoted 3 lines · Konrad Rzeszutek Wilk
Quoted 1 line · Don Slutz
Looks like I had an issue with the mailer I used, and this did not
get
Quoted 9 lines
Quoted 9 lines
to anyone at citrix.com. Resending via a different SMTP server.
-Don SlutzQuoted 1 line · Don Slutz
Commit
2b3072ed0cbeed8c0385f20e92ba0f1201db8a17has the setting of
obj->u.bQuoted 3 lines
Commit
6a2aca9fdef0499e613715baf107f2296b9007cfdoes not.This shows up by vnc-port and vnc-listen are missing in xenstore
when
Quoted 13 lines
Quoted 13 lines
they should not be.
tools/libxl/libxl_json.c static int json_callback_boolean(void *opaque,
Quoted 10 lines
Signed-off-by Don Slutz <[email protected]>--- tools/libxl/libxl_json.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)tools/libxl/libxl_json.c +0
-0@@ -474,6 +474,7 @@ static int json_callback_boolean(void *opaque,int boolean)
Quoted 1 line
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
if ((obj = libxl__json_object_alloc(ctx->gc, JSON_BOOL)) ==NULL)
Quoted 4 lines
return 0; + obj->u.b = boolean; if (libxl__json_object_append_to(ctx->gc, obj, ctx->current)==
Quoted 8 lines
Quoted 7 lines
-1) {
Quoted 1 line
libxl__json_object_free(ctx->gc, obj);_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-develCould you also include in the commit description not just the git
commit id but also also the title of said patches? Thanks How does this look:
Commit
2b3072ed0cbeed8c0385f20e92ba0f1201db8a17has the setting ofobj->u.b
libxl_json: Replace JSON_TRUE/FALSE byJSON_BOOL.
Quoted 8 lines
Commit
6a2aca9fdef0499e613715baf107f2296b9007cfdoes not.
libxl_json: Replace JSON_TRUE/FALSE byJSON_BOOL.This shows up by vnc-port and vnc-listen are missing in xenstore
when they should not be.for the commit message?
-Don Slutz
I don't have my git tree in front of me but are you sure that both git commits have the same title. That would be pretty odd.
Anyhow I usually just include the title right after the commit as: git commit xyz ('title of said patch').
Signature · 1 line
Sent from my Android phone. Please excuse my brevity.
Quoted 54 lines · Konrad Rzeszutek Wilk
Quoted 52 lines · Don Slutz
Quoted 3 lines · Konrad Rzeszutek Wilk
Quoted 1 line · Don Slutz
Looks like I had an issue with the mailer I used, and this did not
get
Quoted 9 lines
Quoted 9 lines
to anyone at citrix.com. Resending via a different SMTP server.
-Don SlutzQuoted 1 line · Don Slutz
Commit
2b3072ed0cbeed8c0385f20e92ba0f1201db8a17has the setting of
obj->u.bQuoted 3 lines
Commit
6a2aca9fdef0499e613715baf107f2296b9007cfdoes not.This shows up by vnc-port and vnc-listen are missing in xenstore
when
Quoted 13 lines
Quoted 13 lines
they should not be.
tools/libxl/libxl_json.c static int json_callback_boolean(void *opaque,
Quoted 10 lines
Signed-off-by Don Slutz <[email protected]>--- tools/libxl/libxl_json.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)tools/libxl/libxl_json.c +0
-0@@ -474,6 +474,7 @@ static int json_callback_boolean(void *opaque,int boolean)
Quoted 1 line
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
if ((obj = libxl__json_object_alloc(ctx->gc, JSON_BOOL)) ==NULL)
Quoted 4 lines
return 0; + obj->u.b = boolean; if (libxl__json_object_append_to(ctx->gc, obj, ctx->current)==
Quoted 7 lines
Quoted 6 lines
-1) {
Quoted 1 line
libxl__json_object_free(ctx->gc, obj);_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-develCould you also include in the commit description not just the git
commit id but also also the title of said patches? Thanks How does this look:
Commit 2b3072ed0cbeed8c0385f20e92ba0f1201db8a17 has the setting of
obj->u.b
libxl_json: Replace JSON_TRUE/FALSE byJSON_BOOL.Commit
6a2aca9fdef0499e613715baf107f2296b9007cfdoes not.
libxl_json: Replace JSON_TRUE/FALSE byJSON_BOOL.
Quoted 8 lines
Quoted 5 lines
This shows up by vnc-port and vnc-listen are missing in xenstore
when they should not be.for the commit message?
-Don SlutzI don't have my git tree in front of me but are you sure that both git commits have the same title. That would be pretty odd.
Anyhow I usually just include the title right after the commit as: git commit xyz ('title of said patch').
I have attached a v2 of the commit message (including the Acked-By: Alex Bligh) and the 2 git commit messages referred to. I can top post the v2 if needed.
-Don Slutz
From 228886732763fd06ecfabb17d1a2f947ab303a2a Mon Sep 17 00:00:00 2001
From: Don Slutz <[email protected]>
Date: Fri, 5 Jul 2013 10:58:48 -0400
Subject: [PATCH] libxl_json: Fix backport of JSON_BOOL to 4.2.2
git commit 2b3072ed0cbeed8c0385f20e92ba0f1201db8a17 ('libxl_json: Replace JSON_TRUE/FALSE by JSON_BOOL.')
has the setting of obj->u.b
git commit 6a2aca9fdef0499e613715baf107f2296b9007cf ('libxl_json: Replace JSON_TRUE/FALSE by JSON_BOOL.')
does not.
This shows up by vnc-port and vnc-listen are missing in xenstore when they should not be.
---
v1 -> v2
Adjust commit message as Konrad Rzeszutek Wilk sugested. Add Alex Bligh's Acked-By
tools/libxl/libxl_json.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
tools/libxl/libxl_json.c +1 -0
@@ -474,6 +474,7 @@ static int json_callback_boolean(void *opaque, int boolean)if ((obj =libxl__json_object_alloc (ctx->gc,JSON_BOOL )) ==NULL )return 0 ; + obj->u.b = boolean;if (libxl__json_object_append_to (ctx->gc, obj, ctx->current) ==-1 ) {libxl__json_object_free (ctx->gc, obj);
Signature · 1 line
1.7.1
commit 2b3072ed0cbeed8c0385f20e92ba0f1201db8a17
Author: Anthony PERARD <[email protected]> Date: Mon Oct 8 11:45:31 2012 +0100
libxl_json: Replace JSON_TRUE/FALSE by JSON_BOOL.
Those two JSON_TRUE and JSON_FALSE were types of node. But it's better to have a unique JSON_BOOL type.
commit 6a2aca9fdef0499e613715baf107f2296b9007cf
Author: Alex Bligh <[email protected]> Date: Tue Feb 19 15:25:13 2013 +0000
libxl_json: Replace JSON_TRUE/FALSE by JSON_BOOL.
Those two JSON_TRUE and JSON_FALSE were types of node. But it's better to have a unique JSON_BOOL type.
Backported from xen-unstable patch:
: HG changeset patch
: User Anthony PERARD <[email protected]> : Date 1349693131 -3600
: Node ID 3f71aab0e2774ded0c5a03436c364fb031ba9aa0 : Parent 4a6d5d8cba4fc44f9bbda201188885868604b8e8
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Looks like I made an error backporting here, which is odd as I thought this applied directly. I've checked the original hg patches I was working from and there's no obvious reason for the difference. Sorry.
Whilst Don's fix is right in that obj->u.b should be set, I note that 4.3 does not check the error return from libxl__json_object_alloc whereas 4.2 does. Given libxl__json_object_alloc itself may SEGV if libxl__zalloc fails, this should not matter.
Acked-By from me below.
Alex
Quoted 7 lines · --On 5 July 2013 11:11:45 -0400 Don Slutz <[email protected]> wrote:
Commit
2b3072ed0cbeed8c0385f20e92ba0f1201db8a17has the setting ofobj->u.bCommit6a2aca9fdef0499e613715baf107f2296b9007cfdoes not.This shows up by vnc-port and vnc-listen are missing in xenstore when they should not be.
Signed-off-by Don Slutz <[email protected]>
Quoted 26 lines
--- tools/libxl/libxl_json.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)tools/libxl/libxl_json.c +1
-1@@ -474,6 +474,7 @@ static int json_callback_boolean(void *opaque, int boolean)if ((obj =libxl__json_object_alloc (ctx->gc,JSON_BOOL )) ==NULL )return 0 ; + obj->u.b = boolean;if (libxl__json_object_append_to (ctx->gc, obj, ctx->current) ==-1 ) {libxl__json_object_free (ctx->gc, obj); --1.7.1
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Signature · 1 line
Alex Bligh