search for: collect_context

Displaying 5 results from an estimated 5 matches for "collect_context".

2023 Oct 08
1
[libnbd PATCH 2/2] info: Show human sizes for block_size values
...ac483f34 100644 >> --- a/info/show.c >> +++ b/info/show.c >> @@ -35,6 +35,7 @@ >> #include "nbdinfo.h" >> >> static void show_boolean (const char *name, bool cond); >> +static void show_size (const char *name, int64_t size); >> static int collect_context (void *opaque, const char *name); >> static char *get_content (struct nbd_handle *, int64_t size); >> >> @@ -181,13 +182,9 @@ show_one_export (struct nbd_handle *nbd, const char *desc, >> show_boolean ("can_trim", can_trim); >> if (can_zero >=...
2020 Oct 02
0
[libnbd PATCH v2 2/2] info: List available meta-contexts
...@@ -37,12 +37,18 @@ static bool json_output = false; static const char *map = NULL; static bool size_only = false; +struct context_list { + char *name; + struct context_list *next; +}; + static struct export_list { size_t len; char **names; char **descs; } export_list; +static int collect_context (void *opaque, const char *name); static int collect_export (void *opaque, const char *name, const char *desc); static void list_one_export (struct nbd_handle *nbd, const char *desc, @@ -207,10 +213,10 @@ main (int argc, char *argv[]) nbd_set_uri_allow_local_file (n...
2023 Oct 06
2
[libnbd PATCH 0/2] Improve nbdinfo display of block constraints
Based on Laszlo's approval of my idea here: https://listman.redhat.com/archives/libguestfs/2023-September/032661.html but as I would like to resync human-size.h back to nbdkit, I'm reluctant to apply patch 1 this until I get Rich's consent to relicensing (this email serves as my consent for my contribution here): https://listman.redhat.com/archives/libguestfs/2023-October/032755.html
2020 Oct 27
6
[PATCH libnbd 0/5] info: --map: Coalesce adjacent extents of the same type.
This adds coalescing of adjacent extents of the same type, as mentioned by Eric Blake in the commit message here: https://github.com/libguestfs/libnbd/commit/46072f6611f80245846a445766da071e457b00cd The patch series is rather long because it detours through adding the <vector.h> library from nbdkit into libnbd and replacing ad hoc uses of realloc, char ** etc in various places. Rich.
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 ++++++++-