Displaying 3 results from an estimated 3 matches for "d220c4f".
2020 Jul 20
2
[PATCH libnbd PROPOSAL] Add APIs for listing exports from an NBD server.
Proposal for new APIs to list exports. The general shape of the API
can probably best be seen from the examples/list-exports.c example.
Rich.
2020 Jul 20
0
[PATCH libnbd PROPOSAL] Add APIs for listing exports from an NBD server.
...cted response, possibly the server does not "
+ "support listing exports");
+ SET_NEXT_STATE (%.DEAD);
+ return 0;
+ }
+ return 0;
+
+} /* END STATE MACHINE */
diff --git a/generator/states-newstyle-opt-starttls.c b/generator/states-newstyle-opt-starttls.c
index d220c4f..2d74e5f 100644
--- a/generator/states-newstyle-opt-starttls.c
+++ b/generator/states-newstyle-opt-starttls.c
@@ -22,7 +22,7 @@ STATE_MACHINE {
NEWSTYLE.OPT_STARTTLS.START:
/* If TLS was not requested we skip this option and go to the next one. */
if (h->tls == LIBNBD_TLS_DISABLE) {
-...
2020 Jul 20
2
Re: [PATCH libnbd PROPOSAL] Add APIs for listing exports from an NBD server.
...exports");
> + SET_NEXT_STATE (%.DEAD);
whereas this definitely makes sense as %.DEAD.
> + return 0;
> + }
> + return 0;
> +
> +} /* END STATE MACHINE */
> diff --git a/generator/states-newstyle-opt-starttls.c b/generator/states-newstyle-opt-starttls.c
> index d220c4f..2d74e5f 100644
> --- a/generator/states-newstyle-opt-starttls.c
> +++ b/lib/handle.c
> +int
> +nbd_unlocked_set_list_exports (struct nbd_handle *h, bool list)
> +{
> + h->list_exports = true;
s/true/list/ (you never really tested clearing the mode...)
> +char *
> +...