Displaying 8 results from an estimated 8 matches for "f59818f".
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 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
>...
2016 Feb 02
0
Re: [PATCH 1/3] launch: add internal helper for socket paths creation
...(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...
2016 Feb 02
6
[PATCH 1/3] launch: add internal helper for socket paths creation
...if (guestfs_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 Jan 29
0
[PATCH 6/6] launch: avoid too long paths for sockets
...if (guestfs_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..1f1f93d 100644
--- a/src/launch.c
+++ b/src/launch.c
@@ -418,6 +418,36 @@ guestfs_int_get_cpu_model (int kvm)
#endif
}
+/* Create the path for a socket with the selected filename in the tmpdir,
+ * falling back to creating a separate sockdir and using that as base.
+ */
+int
+guestfs_int_creat...
2016 Jan 29
7
[PATCH 1/6] launch: unix: check for length of sockets
Error out early if the path to the socket will not fit into
sockaddr_un::sun_path, as we will not be able to connect to it.
---
src/launch-unix.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/launch-unix.c b/src/launch-unix.c
index 740c554..973e14b 100644
--- a/src/launch-unix.c
+++ b/src/launch-unix.c
@@ -47,6 +47,12 @@ launch_unix (guestfs_h *g, void *datav, const char
2016 Feb 03
4
[PATCH v2 1/2] launch: add internal helper for socket paths creation
...if (guestfs_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..60f02a7 100644
--- a/src/launch.c
+++ b/src/launch.c
@@ -418,6 +418,23 @@ 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 Jan 29
1
Re: [PATCH 6/6] launch: avoid too long paths for sockets
...(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..1f1f93d 100644
> --- a/src/launch.c
> +++ b/src/launch.c
> @@ -418,6 +418,36 @@ guestfs_int_get_cpu_model (int kvm)
> #endif
> }
>
> +/* Create the path for a socket with the selected filename in the tmpdir,
> + * falling back to creating a separate sockdir and using th...