search for: tcontent

Displaying 9 results from an estimated 9 matches for "tcontent".

Did you mean: content
2014 Feb 04
0
[PATCH 3/3] resize: preserve GPT partition names (RHBZ#1060404).
...ntent size. *) + p_label : string option; (* Label/name. *) (* What we're going to do: *) mutable p_operation : partition_operation; @@ -84,7 +85,12 @@ let rec debug_partition p = | MBR_ID i -> sprintf "0x%x" i | GPT_Type i -> i ); - eprintf "\tcontent: %s\n" (string_of_partition_content p.p_type) + eprintf "\tcontent: %s\n" (string_of_partition_content p.p_type); + eprintf "\tlabel: %s\n" + (match p.p_label with + | Some label -> label + | None -> "(none)" + ) and string_of_partition_conten...
2014 Feb 04
6
[PATCH 0/3] virt-resize: preserve GPT partitions label
Hi, attached there are few patches to implement a way to get the label of GPT partitions (refactoring an existing function and adding a new daemon API) and using it in virt-resize to restore them when copying partitions. Thanks, Pino Toscano (3): daemon: parted: refactor sgdisk info parsing code New API: part-get-name (RHBZ#593511). resize: preserve GPT partition names (RHBZ#1060404).
2020 Jul 29
0
[libnbd PATCH 2/2] info: Expose description in list mode
...t 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 ("\t\"description\": "); + print_json_string (desc); + printf (&qu...
2020 Oct 06
2
[PATCH libnbd] info: Write output atomically.
...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", content); if (show_context) { - printf ("\tcontexts:\n"); + fprintf (fp, "\tcontexts:\n"); for (struct context_list *next = contexts; next; next = next->next) - printf ("...
2014 Feb 03
2
[PATCH] resize: properly restore GPT partition types
...f "0x%x" i); + (match p.p_mbr_id, p.p_gpt_type with + | None, None -> "(none)" + | Some i, None -> sprintf "0x%x" i + | None, Some i -> i + | Some _, Some _ -> + (* This should not happen. *) + assert false + ); eprintf "\tcontent: %s\n" (string_of_partition_content p.p_type) and string_of_partition_content = function | ContentUnknown -> "unknown data" @@ -440,15 +448,21 @@ read the man page virt-resize(1). let part_num = Int32.to_int part_num in let name = sprintf "/dev/sda%d...
2020 Oct 02
0
[libnbd PATCH v2 2/2] info: List available meta-contexts
...tiating */ + 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", next->name); + } if (is_rotational >= 0) printf ("\t%s: %s\n&quot...
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 ++++++++-
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.