On Wednesday, 10 January 2018 13:07:51 CET Cédric Bosdonnat wrote:
> In some cases, the first stage bootloader needs the 'Legacy BIOS
> bootable' flag to be set on the partition. This change copies all
> flags (including this one) for each partition of the old disk to the
> new one to avoid ending up with non-bootable disks.
> ---

This of course needs changes according to my notes in patch #2
(basically regarding the type for the part_(get|set)_gpt_attributes
APIs).

> @@ -1191,12 +1199,13 @@ read the man page virt-resize(1).
>     * is changed from primary to extended.  Thus we need to set the
>     * MBR ID before doing the copy so sfdisk doesn't corrupt things.
>     *)
> -  let set_partition_bootable_and_id p =
> +  let set_partition_bootable_attributes_and_id p =

Considering the function already does more than what the name says,
I would simply rename it to set_partition_attributes, and be done with
it.

-- 
Pino Toscano

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs

Reply via email to