search for: ec061e3

Displaying 5 results from an estimated 5 matches for "ec061e3".

2016 Feb 03
3
Re: [PATCH 1/3] launch: add internal helper for socket paths creation
On Tuesday 02 February 2016 19:47:12 Richard W.M. Jones wrote: > On Tue, Feb 02, 2016 at 03:27:39PM +0100, Pino Toscano wrote: > > diff --git a/src/launch.c b/src/launch.c > > index f59818f..ec061e3 100644 > > --- a/src/launch.c > > +++ b/src/launch.c > > @@ -418,6 +418,21 @@ guestfs_int_get_cpu_model (int kvm) > > #endif > > } > > > > +/* Create the path for a socket with the selected filename in the > > + * tmpdir. > > + */ > >...
2016 Feb 02
6
[PATCH 1/3] launch: add internal helper for socket paths creation
...tfs_int_create_socketname (g, "console.sock", + &data->console_path) == -1) + goto cleanup; console_sock = socket (AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0); if (console_sock == -1) { diff --git a/src/launch.c b/src/launch.c index f59818f..ec061e3 100644 --- a/src/launch.c +++ b/src/launch.c @@ -418,6 +418,21 @@ guestfs_int_get_cpu_model (int kvm) #endif } +/* Create the path for a socket with the selected filename in the + * tmpdir. + */ +int +guestfs_int_create_socketname (guestfs_h *g, const char *filename, +...
2016 Feb 03
0
Re: [PATCH 1/3] launch: add internal helper for socket paths creation
On Wed, Feb 03, 2016 at 10:35:07AM +0100, Pino Toscano wrote: > On Tuesday 02 February 2016 19:47:12 Richard W.M. Jones wrote: > > On Tue, Feb 02, 2016 at 03:27:39PM +0100, Pino Toscano wrote: > > > diff --git a/src/launch.c b/src/launch.c > > > index f59818f..ec061e3 100644 > > > --- a/src/launch.c > > > +++ b/src/launch.c > > > @@ -418,6 +418,21 @@ guestfs_int_get_cpu_model (int kvm) > > > #endif > > > } > > > > > > +/* Create the path for a socket with the selected filename in the > > &g...
2016 Feb 02
0
Re: [PATCH 1/3] launch: add internal helper for socket paths creation
...;console.sock", > + &data->console_path) == -1) > + goto cleanup; > > console_sock = socket (AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0); > if (console_sock == -1) { > diff --git a/src/launch.c b/src/launch.c > index f59818f..ec061e3 100644 > --- a/src/launch.c > +++ b/src/launch.c > @@ -418,6 +418,21 @@ guestfs_int_get_cpu_model (int kvm) > #endif > } > > +/* Create the path for a socket with the selected filename in the > + * tmpdir. > + */ > +int > +guestfs_int_create_socketname (guestfs_...
2016 Feb 02
0
[PATCH 3/3] New API: get-sockdir
...estfs_h *g) if (g->pda) hash_free (g->pda); free (g->tmpdir); + free (g->sockdir); free (g->env_tmpdir); + free (g->env_runtimedir); free (g->int_tmpdir); free (g->int_cachedir); free (g->last_error); diff --git a/src/launch.c b/src/launch.c index ec061e3..e6972d1 100644 --- a/src/launch.c +++ b/src/launch.c @@ -425,9 +425,15 @@ int guestfs_int_create_socketname (guestfs_h *g, const char *filename, char (*sockpath)[UNIX_PATH_MAX]) { - char *path = g->tmpdir; + if (guestfs_int_lazy_make_sockdir (g) == -1) + r...