mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +00:00
* src/parthelper.c: Don't fail if PED_PARTITION_PROTECTED
is not defined because of ancient libparted (Soren Hansen).
This commit is contained in:
parent
4ffb0358de
commit
1e43bebf69
@ -1,3 +1,9 @@
|
|||||||
|
Tue Apr 29 09:15:00 BST 2008 Richard W.M. Jones <rjones@redhat.com>
|
||||||
|
|
||||||
|
* src/parthelper.c: Don't fail if PED_PARTITION_PROTECTED
|
||||||
|
is not defined because of ancient libparted
|
||||||
|
(Soren Hansen).
|
||||||
|
|
||||||
Mon Apr 28 17:24:22 EST 2008 Daniel P. Berrange <berrange@redhat.com>
|
Mon Apr 28 17:24:22 EST 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* src/memory.h, src/memory.c: Added safer APIs for dealing
|
* src/memory.h, src/memory.c: Added safer APIs for dealing
|
||||||
|
@ -67,8 +67,10 @@ int main(int argc, char **argv)
|
|||||||
content = "free";
|
content = "free";
|
||||||
else if (part->type & PED_PARTITION_METADATA)
|
else if (part->type & PED_PARTITION_METADATA)
|
||||||
content = "metadata";
|
content = "metadata";
|
||||||
|
#ifdef PED_PARTITION_PROTECTED
|
||||||
else if (part->type & PED_PARTITION_PROTECTED)
|
else if (part->type & PED_PARTITION_PROTECTED)
|
||||||
content = "protected";
|
content = "protected";
|
||||||
|
#endif
|
||||||
else
|
else
|
||||||
content = "data";
|
content = "data";
|
||||||
} else if (part->type == PED_PARTITION_EXTENDED) {
|
} else if (part->type == PED_PARTITION_EXTENDED) {
|
||||||
@ -80,8 +82,10 @@ int main(int argc, char **argv)
|
|||||||
content = "free";
|
content = "free";
|
||||||
else if (part->type & PED_PARTITION_METADATA)
|
else if (part->type & PED_PARTITION_METADATA)
|
||||||
content = "metadata";
|
content = "metadata";
|
||||||
|
#ifdef PED_PARTITION_PROTECTED
|
||||||
else if (part->type & PED_PARTITION_PROTECTED)
|
else if (part->type & PED_PARTITION_PROTECTED)
|
||||||
content = "protected";
|
content = "protected";
|
||||||
|
#endif
|
||||||
else
|
else
|
||||||
content = "data";
|
content = "data";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user