search for: texport

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

Did you mean: export
2020 Jul 29
0
[libnbd PATCH 2/2] info: Expose description in list mode
...@ list_one_export (struct nbd_handle *nbd) /* Might as well use the JSON function to get an escaped string here ... */ print_json_string (export_name); printf (":\n"); + if (desc && *desc) + printf ("\tdescription: %s\n", desc); printf ("\texport-size: %" PRIi64 "\n", size); if (content) printf ("\tcontent: %s\n", content); @@ -336,6 +339,12 @@ list_one_export (struct nbd_handle *nbd) print_json_string (export_name); printf (",\n"); + if (desc && *desc) { + printf (&q...
2020 Oct 06
2
[PATCH libnbd] info: Write output atomically.
...uot;); /* Might as well use the JSON function to get an escaped string here ... */ print_json_string (export_name); - printf (":\n"); + fprintf (fp, ":\n"); if (desc && *desc) - printf ("\tdescription: %s\n", desc); - printf ("\texport-size: %" PRIi64 "\n", size); + fprintf (fp, "\tdescription: %s\n", desc); + fprintf (fp, "\texport-size: %" PRIi64 "\n", size); if (content) - printf ("\tcontent: %s\n", content); + fprintf (fp, "\tcontent: %s\n&quot...
2020 Oct 02
0
[libnbd PATCH v2 2/2] info: List available meta-contexts
...) + show_context = true; + + /* Get content last, as it moves the connection out of negotiating */ + content = get_content (nbd, size); if (!json_output) { printf ("export="); @@ -412,6 +452,11 @@ list_one_export (struct nbd_handle *nbd, const char *desc, printf ("\texport-size: %" PRIi64 "\n", size); if (content) printf ("\tcontent: %s\n", content); + if (show_context) { + printf ("\tcontexts:\n"); + for (struct context_list *next = contexts; next; next = next->next) + printf ("\t\t%s\n"...
2020 Jul 29
3
[libnbd PATCH 0/2] Expose export description
An incremental improvement on top of listing exports. I still think it's worth experimenting with revisiting how our API for list mode should actually work [1] (so that we can reuse a single connection for both grabbing the list and finally using NBD_OPT_GO), but this change was easier to whip together while still thinking about that. [1]
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 ++++++++-