[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [Libvir] [PATCH] Ancient libparted
- From: "Richard W.M. Jones" <rjones redhat com>
- To: libvir-list redhat com
- Subject: Re: [Libvir] [PATCH] Ancient libparted
- Date: Tue, 29 Apr 2008 09:13:57 +0100
On Tue, Apr 29, 2008 at 09:54:04AM +0200, Soren Hansen wrote:
> Some of us are stuck with an ancient libparted, which doesn't know about
> PED_PARTITION_PROTECTED. This patch allows us to compile libvirt.
>
>
> === modified file 'src/parthelper.c'
> --- src/parthelper.c 2008-04-10 16:53:29 +0000
> +++ src/parthelper.c 2008-04-29 07:47:08 +0000
> @@ -67,8 +67,10 @@
> content = "free";
> else if (part->type & PED_PARTITION_METADATA)
> content = "metadata";
> +#ifdef PED_PARTITION_PROTECTED
> else if (part->type & PED_PARTITION_PROTECTED)
> content = "protected";
> +#endif
> else
> content = "data";
> } else if (part->type == PED_PARTITION_EXTENDED) {
> @@ -80,8 +82,10 @@
> content = "free";
> else if (part->type & PED_PARTITION_METADATA)
> content = "metadata";
> +#ifdef PED_PARTITION_PROTECTED
> else if (part->type & PED_PARTITION_PROTECTED)
> content = "protected";
> +#endif
> else
> content = "data";
> }
Yup, I'll apply this.
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]