Displaying 2 results from an estimated 2 matches for "7742ea3".
Did you mean:
774263
2019 Sep 17
0
[PATCH libnbd 2/2] api: New API for reading NBD protocol.
...@
switch (reply) {
case NBD_REP_ACK:
- SET_NEXT_STATE (%.READY);
+ SET_NEXT_STATE (%^FINISHED);
return 0;
case NBD_REP_INFO:
if (len > maxpayload /* see RECV_NEWSTYLE_OPT_GO_REPLY */)
diff --git a/generator/states-newstyle.c b/generator/states-newstyle.c
index c8f817e..7742ea3 100644
--- a/generator/states-newstyle.c
+++ b/generator/states-newstyle.c
@@ -155,4 +155,13 @@ handle_reply_error (struct nbd_handle *h)
}
return 0;
+ NEWSTYLE.FINISHED:
+ if ((h->gflags & NBD_FLAG_FIXED_NEWSTYLE) == 0)
+ h->protocol = "newstyle";
+ else
+ h->...
2019 Sep 17
3
[PATCH libnbd 1/2] api: Add new API to read whether TLS was negotiated.
When LIBNBD_TLS_ALLOW is used we don't have a way to find out if TLS
was really negotiated. This adds a flag and a way to read it back.
Unfortunately there is no test yet, because LIBNBD_TLS_ALLOW is not
tested -- it really should be but requires quite a complicated set of
tests because ideally we'd like to find out whether it falls back
correctly for all supported servers.
---
TODO