search for: clear_meta_contexts

Displaying 7 results from an estimated 7 matches for "clear_meta_contexts".

2020 Sep 28
0
[libnbd PATCH 1/3] api: Add get_nr_meta_contexts, clear_meta_contexts
...o be negotiated. You can call it as many times as needed. The list is initially -empty when the handle is created. +empty when the handle is created; you can check the contents of +the list with L<nbd_get_nr_meta_contexts(3)> and +L<nbd_get_meta_context(3)>, or clear it with +L<nbd_clear_meta_contexts(3)>. The NBD protocol limits meta context names to 4096 bytes, but servers may not support the full length. The encoding of meta @@ -991,9 +994,73 @@ C<LIBNBD_CONTEXT_> for some well-known contexts, but you are free to pass in other contexts. Other metadata contexts are server-speci...
2020 Sep 29
0
[PATCH libnbd] DO NOT PUSH: Update api: Add get_nr_meta_contexts, clear_meta_contexts
--- generator/API.ml | 2 +- lib/handle.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/generator/API.ml b/generator/API.ml index 770f41e..fd6f033 100644 --- a/generator/API.ml +++ b/generator/API.ml @@ -1024,7 +1024,7 @@ what it actually supports, see L<nbd_can_meta_context(3)>."; "get_meta_context", { default_call with - args = [
2020 Sep 29
0
Re: [libnbd PATCH 1/3] api: Add get_nr_meta_contexts, clear_meta_contexts
On 9/29/20 6:26 AM, Richard W.M. Jones wrote: > On Mon, Sep 28, 2020 at 05:05:16PM -0500, Eric Blake wrote: >> + "get_meta_context", { >> + default_call with >> + args = [ Int "i" ]; ret = RString; > > Previously we have only used the Int parameter type for things which > are plausibly integers (timeouts, signal numbers). This one really
2020 Sep 29
2
Re: [libnbd PATCH 1/3] api: Add get_nr_meta_contexts, clear_meta_contexts
On Mon, Sep 28, 2020 at 05:05:16PM -0500, Eric Blake wrote: > + "get_meta_context", { > + default_call with > + args = [ Int "i" ]; ret = RString; Previously we have only used the Int parameter type for things which are plausibly integers (timeouts, signal numbers). This one really ought to be an unsigned or better still a size_t. Would it help if I provided
2020 Sep 28
8
[libnbd PATCH 0/3] opt_list_meta_context
...terop 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 (3): api: Add get_nr_meta_contexts, clear_meta_contexts generator: Rename OPT_SET_META_CONTEXT states api: Add nbd_opt_list_meta_context lib/internal.h | 1 + generator/API.ml | 162 +++++++++++++++++- generator/Makefile.am | 4 +- generator/state_machine.ml...
2020 Oct 02
4
[libnbd PATCH v2 0/2] opt_list_meta_context
In v2: ack'ed preliminary patches have been pushed, and I've added a lot of testsuite coverage as well as putting the new API to use in nbdinfo. Eric Blake (2): api: Add nbd_opt_list_meta_context info: List available meta-contexts lib/internal.h | 1 + generator/API.ml | 84 ++++++++-
2020 Sep 28
0
[libnbd PATCH 3/3] api: Add nbd_opt_list_meta_context
...led option mode. + +The NBD protocol allows a client to decide how many queries to ask +the server. Rather than taking that list of queries as a parameter +to this function, libnbd reuses the current list of requested meta +contexts as set by L<nbd_add_meta_context(3)>; you can use +L<nbd_clear_meta_contexts(3)> to set up a different list of queries. +When the list is empty, a server will typically reply with all +contexts that it supports; when the list is non-empty, the server +will reply only with supported contexts that match the client's +request. Note that a reply by the server might be e...