search for: e0047b7

Displaying 3 results from an estimated 3 matches for "e0047b7".

Did you mean: 590047b7
2020 Sep 29
0
[PATCH libnbd] DO NOT PUSH: Update api: Add get_nr_meta_contexts, clear_meta_contexts
...rgs = [ Int "i" ]; ret = RString; + args = [ SizeT "i" ]; ret = RString; shortdesc = "return the i'th meta context request"; longdesc = "\ During connection libnbd can negotiate zero or more metadata diff --git a/lib/handle.c b/lib/handle.c index e0047b7..7adc6d1 100644 --- a/lib/handle.c +++ b/lib/handle.c @@ -320,12 +320,12 @@ nbd_unlocked_get_nr_meta_contexts (struct nbd_handle *h) } char * -nbd_unlocked_get_meta_context (struct nbd_handle *h, int i) +nbd_unlocked_get_meta_context (struct nbd_handle *h, size_t i) { size_t len = nbd_inter...
2020 Sep 28
0
[libnbd PATCH 1/3] api: Add get_nr_meta_contexts, clear_meta_contexts
..._nr_meta_contexts", (1, 6); + "get_meta_context", (1, 6); + "clear_meta_contexts", (1, 6); (* These calls are proposed for a future version of libnbd, but * have not been added to any released version so far. diff --git a/lib/handle.c b/lib/handle.c index a6b2172..e0047b7 100644 --- a/lib/handle.c +++ b/lib/handle.c @@ -313,6 +313,38 @@ nbd_unlocked_add_meta_context (struct nbd_handle *h, const char *name) return 0; } +int +nbd_unlocked_get_nr_meta_contexts (struct nbd_handle *h) +{ + return nbd_internal_string_list_length (h->request_meta_contexts); +} + +...
2020 Sep 28
8
[libnbd PATCH 0/3] opt_list_meta_context
I'm posting this now, as I'm at the end of a workday and I got things working for manual experimentation. Still to do: - write interop tests for qemu-nbd and nbdkit (including my proposed patch addition of qemu-nbd -A to show qemu:allocation-depth) - figure out if we can make 'nbdinfo --map' use the new API to automatically select all contexts advertised by the server Eric Blake