search for: e7be05b

Displaying 4 results from an estimated 4 matches for "e7be05b".

2019 Jun 09
1
Re: [PATCH libnbd 2/3] states: Add handle h->wflags field.
...return 1; /* more data */ + + next_state: + h->wflags = 0; /* reset this when moving to next state */ + return 0; /* move to next state */ } /*----- End of prologue. -----*/ diff --git a/lib/internal.h b/lib/internal.h index 1ffb5b7..e7be05b 100644 --- a/lib/internal.h +++ b/lib/internal.h @@ -110,6 +110,7 @@ struct nbd_handle { /* As above, but for writing using send_from_wbuf. */ const void *wbuf; size_t wlen; + int wflags; /* Static buffer used for short amounts of data, such as handshake * and commands. -- 2.21....
2019 Jun 08
0
[PATCH libnbd 2/3] states: Add handle h->wflags field.
...;wlen == 0) + if (h->wlen == 0) { + h->wflags = 0; /* reset this when moving to next state */ return 0; /* move to next state */ + } else return 1; /* more data */ } diff --git a/lib/internal.h b/lib/internal.h index 1ffb5b7..e7be05b 100644 --- a/lib/internal.h +++ b/lib/internal.h @@ -110,6 +110,7 @@ struct nbd_handle { /* As above, but for writing using send_from_wbuf. */ const void *wbuf; size_t wlen; + int wflags; /* Static buffer used for short amounts of data, such as handshake * and commands. -- 2.21....
2019 Jun 08
6
[PATCH libnbd 0/3] states: Use MSG_MORE to coalesce messages.
Appears to have a measurable benefit, see 3/3 for test results. Rich.
2019 Jun 14
1
[libnbd PATCH] states: Validate error message size
..."this is likely to be a bug in the server", + offset, cmd->offset, cmd->count); + return -1; + } + } + if (flags & NBD_REPLY_FLAG_DONE) SET_NEXT_STATE (%^FINISH_COMMAND); else diff --git a/lib/internal.h b/lib/internal.h index e7be05b..7ad6219 100644 --- a/lib/internal.h +++ b/lib/internal.h @@ -143,6 +143,7 @@ struct nbd_handle { uint32_t len; uint16_t nrinfos; uint32_t nrqueries; + uint64_t offset; } sbuf; /* Issuing a command must use a buffer separate from sbuf, for the -- 2.20.1