[Libvir] [PATCH] Ancient libparted
Soren Hansen
soren at ubuntu.com
Tue Apr 29 07:54:04 UTC 2008
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";
}
--
Soren Hansen |
Virtualisation specialist | Ubuntu Server Team
Canonical Ltd. | http://www.ubuntu.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080429/f2baf5d5/attachment-0001.sig>
More information about the libvir-list
mailing list