Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
xen
0002-xenstore-undo-function-rename.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-xenstore-undo-function-rename.patch of Package xen
References: bsc#1022555 From fcf93b4d45b31d7c150fac41aeb9cebe9748964f Mon Sep 17 00:00:00 2001 From: Juergen Gross <jgross@suse.com> Date: Wed, 15 Mar 2017 13:10:12 +0100 Subject: [PATCH 2/3] xenstore: undo function rename Undo the function rename done in previous patch. Signed-off-by: Juergen Gross <jgross@suse.com> --- tools/xenstore/xenstored_core.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) Index: xen-4.4.4-testing/tools/xenstore/xenstored_core.c =================================================================== --- xen-4.4.4-testing.orig/tools/xenstore/xenstored_core.c +++ xen-4.4.4-testing/tools/xenstore/xenstored_core.c @@ -423,7 +423,7 @@ static struct node *read_node(struct con return node; } -static int xs_write_node(struct connection *conn, struct node *node) +static int write_node(struct connection *conn, struct node *node) { /* * conn will be null when this is called from manual_node. @@ -1007,7 +1007,7 @@ static struct node *create_node(struct c /* We write out the nodes down, setting destructor in case * something goes wrong. */ for (i = node; i; i = i->parent) { - if (xs_write_node(conn, i)) { + if (write_node(conn, i)) { domain_entry_dec(conn, i); return NULL; } @@ -1047,7 +1047,7 @@ static int do_write(struct connection *c } else { node->data = in->buffer + offset; node->datalen = datalen; - if (xs_write_node(conn, node)) + if (write_node(conn, node)) return errno; } @@ -1120,24 +1120,24 @@ static void memdel(void *mem, unsigned o } -static int xs_remove_child_entry(struct connection *conn, struct node *node, +static int remove_child_entry(struct connection *conn, struct node *node, size_t offset) { size_t childlen = strlen(node->children + offset); memdel(node->children, offset, childlen + 1, node->childlen); node->childlen -= childlen + 1; - return xs_write_node(conn, node); + return write_node(conn, node); } -static int xs_delete_child(struct connection *conn, +static int delete_child(struct connection *conn, struct node *node, const char *childname) { unsigned int i; for (i = 0; i < node->childlen; i += strlen(node->children+i) + 1) { if (streq(node->children+i, childname)) { - return xs_remove_child_entry(conn, node, i); + return remove_child_entry(conn, node, i); } } corrupt(conn, "Can't find child '%s' in %s", childname, node->name); @@ -1161,7 +1161,7 @@ static int _rm(struct connection *conn, if (!parent) return (errno == ENOMEM) ? ENOMEM : EINVAL; - if (xs_delete_child(conn, parent, basename(name))) + if (delete_child(conn, parent, basename(name))) return EINVAL; delete_node(conn, node, true); @@ -1265,7 +1265,7 @@ static int do_set_perms(struct connectio node->num_perms = num; domain_entry_inc(conn, node); - if (xs_write_node(conn, node)) + if (write_node(conn, node)) return errno; wrl_apply_debit_direct(conn); @@ -1527,7 +1527,7 @@ static void manual_node(const char *name if (child) node->childlen = strlen(child) + 1; - if (xs_write_node(NULL, node)) + if (write_node(NULL, node)) barf_perror("Could not create initial node %s", name); talloc_free(node); } @@ -1666,7 +1666,7 @@ static int check_store_(const char *name childname); if (recovery) { - xs_remove_child_entry(NULL, node, + remove_child_entry(NULL, node, i); i -= childlen + 1; } @@ -1688,7 +1688,7 @@ static int check_store_(const char *name childname); if (recovery) { - xs_remove_child_entry(NULL, node, i); + remove_child_entry(NULL, node, i); i -= childlen + 1; } } else {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor