search for: 88ad703

Displaying 2 results from an estimated 2 matches for "88ad703".

2019 Jun 28
1
[libnbd PATCH] disconnect: Prevent any further commands
..., 0, NBD_CMD_DISC, 0, 0, NULL, NULL); if (id == -1) return -1; + h->disconnect_request = true; /* This will leave the command on the in-flight list. Is this a * problem? Probably it isn't. If it is, we could add a flag to diff --git a/lib/internal.h b/lib/internal.h index 88ad703..11e0db6 100644 --- a/lib/internal.h +++ b/lib/internal.h @@ -191,6 +191,8 @@ struct nbd_handle { struct command_in_flight *cmds_to_issue, *cmds_in_flight, *cmds_done; /* Current command during a REPLY cycle */ struct command_in_flight *reply_cmd; + + bool disconnect_request; /* True...
2019 Jun 27
1
[libnbd PATCH] block-status: Make callback usage consistent with pread_structured
...amp; nbd_aio_is_ready (nbd)); - assert (data.seen_base ^ data.seen_dirty); + assert (data.seen_base && data.seen_dirty); if (nbd_pread (nbd, &c, 1, 0, 0) == -1) { fprintf (stderr, "%s\n", nbd_get_error ()); diff --git a/lib/internal.h b/lib/internal.h index f827957..88ad703 100644 --- a/lib/internal.h +++ b/lib/internal.h @@ -232,7 +232,7 @@ struct socket { }; typedef int (*extent_fn) (void *data, const char *metacontext, uint64_t offset, - uint32_t *entries, size_t nr_entries); + uint32_t *entries, size_t nr_entrie...