search for: 825b326

Displaying 3 results from an estimated 3 matches for "825b326".

Did you mean: 25326
2019 May 23
5
[PATCH libnbd 0/3] Prevent some misuse of multi-conn.
Per recent discussion here: https://www.redhat.com/archives/libguestfs/2019-May/thread.html#00175
2019 May 23
0
[PATCH libnbd 2/3] states: Prevent multi-conn connection unless the server advertizes it.
...ll +C<nbd_set_multi_conn> with a larger value to increase +the number of connection objects, then call one of the +C<nbd_connect*> functions again on the handle to connect +the remaining connections."; }; "can_cache", { diff --git a/lib/flags.c b/lib/flags.c index 825b326..1956db6 100644 --- a/lib/flags.c +++ b/lib/flags.c @@ -42,6 +42,16 @@ nbd_internal_set_size_and_flags (struct nbd_handle *h, return -1; } + /* It is unsafe to connect to a server with multi-conn set unless + * the server says it is safe to do so. + */ + if (h->multi_conn > 1...
2019 May 23
0
[PATCH libnbd 1/3] states: Factor out common code for setting export size and eflags.
...: 0x%" PRIx16, gflags); + + if (nbd_internal_set_size_and_flags (conn->h, exportsize, eflags) == -1) { SET_NEXT_STATE (%.DEAD); - set_error (EINVAL, "handshake: invalid eflags == 0 from server"); return -1; } diff --git a/lib/flags.c b/lib/flags.c index f0d9dc3..825b326 100644 --- a/lib/flags.c +++ b/lib/flags.c @@ -21,10 +21,32 @@ #include <stdio.h> #include <stdlib.h> #include <stdbool.h> +#include <stdint.h> +#include <inttypes.h> #include <errno.h> #include "internal.h" +/* Set the export size and eflags o...