Displaying 4 results from an estimated 4 matches for "libnbd_have_nbd_connect_sa".
2019 Oct 01
2
Re: [PATCH libnbd v2 2/2] api: Implement local command with systemd socket activation.
...ht to add a matching nbd_supports_socket_activation()
feature function.
Or, it would be possible to create a fallback for execvpe() on platforms
that lack it by using execlpe() and our own path-walker utility
function. Can be done as a followup patch. If we do that, then the
mere presence of LIBNBD_HAVE_NBD_CONNECT_SA is witness enough of the
functionality, rather than needing a runtime probe.
> +++ b/lib/connect.c
> +
> +int
> +nbd_unlocked_aio_connect_socket_activation (struct nbd_handle *h, char **argv)
> +{
> + char **copy;
> +
> + copy = nbd_internal_copy_string_list (argv);
&g...
2019 Nov 15
1
Re: [PATCH libnbd v2 2/2] api: Implement local command with systemd socket activation.
...on()
>> feature function.
>>
>> Or, it would be possible to create a fallback for execvpe() on
>> platforms that lack it by using execlpe() and our own path-walker
>> utility function. Can be done as a followup patch. If we do that,
>> then the mere presence of LIBNBD_HAVE_NBD_CONNECT_SA is witness
>> enough of the functionality, rather than needing a runtime probe.
>
> I'm hoping we will find the time to write a replacement execvpe so
> that we can implement this on all platforms. That way we can avoid
> having a redundant nbd_supports_socket_activation() c...
2019 Oct 01
0
Re: [PATCH libnbd v2 2/2] api: Implement local command with systemd socket activation.
...upports_socket_activation()
> feature function.
>
> Or, it would be possible to create a fallback for execvpe() on
> platforms that lack it by using execlpe() and our own path-walker
> utility function. Can be done as a followup patch. If we do that,
> then the mere presence of LIBNBD_HAVE_NBD_CONNECT_SA is witness
> enough of the functionality, rather than needing a runtime probe.
I'm hoping we will find the time to write a replacement execvpe so
that we can implement this on all platforms. That way we can avoid
having a redundant nbd_supports_socket_activation() call that (in
future) alw...
2019 Sep 30
4
[PATCH libnbd v2 0/2] Implement systemd socket activation.
v1 was posted here:
https://www.redhat.com/archives/libguestfs/2019-September/thread.html#00337
v2:
- Drop the first patch.
- Hopefully fix the multiple issues with fork-safety and general
behaviour on error paths.
Note this requires execvpe for which there seems to be no equivalent
on FreeBSD, except some kind of tedious path parsing (but can we
assign to environ?)
Rich.