Re: [PATCH for-4.17] tools/ocaml/xenstored: fix live update exception

2022-10-21 Thread Edwin Torok
> On 21 Oct 2022, at 08:50, Christian Lindig > wrote: > > > >> On 20 Oct 2022, at 17:54, Edwin Török wrote: >> >> During live update we will load the /tool/xenstored path from the previous >> binary, >> and then try to mkdir /tool again which will fail with EEXIST. >> Check for existence

Re: [PATCH for-4.17] tools/ocaml/xenstored: fix live update exception

2022-10-21 Thread Christian Lindig
> On 20 Oct 2022, at 17:54, Edwin Török wrote: > > During live update we will load the /tool/xenstored path from the previous > binary, > and then try to mkdir /tool again which will fail with EEXIST. > Check for existence of the path before creating it. > > The write call to /tool/xenstored

RE: [PATCH for-4.17] tools/ocaml/xenstored: fix live update exception

2022-10-20 Thread Henry Wang
Hi Edwin, > -Original Message- > From: Edwin Török > Subject: [PATCH for-4.17] tools/ocaml/xenstored: fix live update exception > > During live update we will load the /tool/xenstored path from the previous > binary, > and then try to mkdir /tool again which

[PATCH for-4.17] tools/ocaml/xenstored: fix live update exception

2022-10-20 Thread Edwin Török
During live update we will load the /tool/xenstored path from the previous binary, and then try to mkdir /tool again which will fail with EEXIST. Check for existence of the path before creating it. The write call to /tool/xenstored should not need any changes (and we do want to overwrite any prev