Displaying 4 results from an estimated 4 matches for "12536e0".
2019 Jun 18
0
[libnbd PATCH 3/8] pread: Reject server SR read response with no data chunks
....
---
generator/states-reply-simple.c | 1 +
generator/states-reply-structured.c | 2 ++
lib/aio.c | 2 ++
lib/internal.h | 1 +
4 files changed, 6 insertions(+)
diff --git a/generator/states-reply-simple.c b/generator/states-reply-simple.c
index 12536e0..935f6d2 100644
--- a/generator/states-reply-simple.c
+++ b/generator/states-reply-simple.c
@@ -40,6 +40,7 @@
if (cmd->error == 0 && cmd->type == NBD_CMD_READ) {
h->rbuf = cmd->data;
h->rlen = cmd->count;
+ cmd->data_seen = true;
SET_NEXT_STATE (%RE...
2019 Jun 20
1
Re: [libnbd PATCH 3/8] pread: Reject server SR read response with no data chunks
...e.c | 1 +
> generator/states-reply-structured.c | 2 ++
> lib/aio.c | 2 ++
> lib/internal.h | 1 +
> 4 files changed, 6 insertions(+)
>
> diff --git a/generator/states-reply-simple.c b/generator/states-reply-simple.c
> index 12536e0..935f6d2 100644
> --- a/generator/states-reply-simple.c
> +++ b/generator/states-reply-simple.c
> @@ -40,6 +40,7 @@
> if (cmd->error == 0 && cmd->type == NBD_CMD_READ) {
> h->rbuf = cmd->data;
> h->rlen = cmd->count;
> + cmd->data_se...
2019 Jun 18
0
[libnbd PATCH 2/8] states: Consolidate search for current reply's command
...ly-structured.c | 61 ++++++-----------------------
generator/states-reply.c | 31 ++++++++++++++-
lib/internal.h | 2 +
4 files changed, 45 insertions(+), 64 deletions(-)
diff --git a/generator/states-reply-simple.c b/generator/states-reply-simple.c
index 7e5340c..12536e0 100644
--- a/generator/states-reply-simple.c
+++ b/generator/states-reply-simple.c
@@ -20,24 +20,15 @@
/* STATE MACHINE */ {
REPLY.SIMPLE_REPLY.START:
- struct command_in_flight *cmd;
+ struct command_in_flight *cmd = h->reply_cmd;
uint32_t error;
uint64_t handle;
error = be32toh...
2019 Jun 18
17
[libnbd PATCH 0/8] Add nbd_pread_callback
I've mentioned this topic before (in fact, the idea of adding
NBD_CMD_FLAG_DF was first mentioned at [1]), but finally finished
enough of an implementation to feel confident in posting it.
I'd still like to add something under examples/ that uses the new API
to implement strict checking of a server's structured replies read
implementation (ensure that a server never sends data after