Re: [PATCH v2 08/19] tools/xenstore: replace watch->relative_path with a prefix length

2023-01-10 Thread Juergen Gross
On 20.12.22 20:42, Julien Grall wrote: Hi Juergen, On 13/12/2022 16:00, Juergen Gross wrote: @@ -313,19 +302,19 @@ const char *dump_state_watches(FILE *fp, struct connection *conn, unsigned int conn_id)   {   const char *ret = NULL; +    const char *watch_path;   s

Re: [PATCH v2 08/19] tools/xenstore: replace watch->relative_path with a prefix length

2022-12-20 Thread Julien Grall
Hi Juergen, On 13/12/2022 16:00, Juergen Gross wrote: @@ -313,19 +302,19 @@ const char *dump_state_watches(FILE *fp, struct connection *conn, unsigned int conn_id) { const char *ret = NULL; + const char *watch_path; struct watch *watch;

[PATCH v2 08/19] tools/xenstore: replace watch->relative_path with a prefix length

2022-12-13 Thread Juergen Gross
Instead of storing a pointer to the path which is prepended to relative paths in struct watch, just use the length of the prepended path. It should be noted that the now removed special case of the relative path being "" in get_watch_path() can't happen at all. Signed-off-by: Juergen Gross --- V