search for: bogus_context

Displaying 2 results from an estimated 2 matches for "bogus_context".

2020 Sep 28
0
[libnbd PATCH 1/3] api: Add get_nr_meta_contexts, clear_meta_contexts
...client library in userspace - * Copyright (C) 2013-2019 Red Hat Inc. + * Copyright (C) 2013-2020 Red Hat Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -30,6 +30,8 @@ #include <libnbd.h> +#define BOGUS_CONTEXT "x-libnbd:nosuch" + static int check_extent (void *data, const char *metacontext, uint64_t offset, @@ -58,6 +60,18 @@ main (int argc, char *argv[]) exit (EXIT_FAILURE); } + /* No contexts requested by default */ + if ((r = nb...
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