* src/parthelper.c: Don't fail if PED_PARTITION_PROTECTED

is not defined because of ancient libparted
          (Soren Hansen).
This commit is contained in:
Richard W.M. Jones 2008-04-29 08:17:36 +00:00
parent 4ffb0358de
commit 1e43bebf69
2 changed files with 10 additions and 0 deletions

View File

@ -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>
* src/memory.h, src/memory.c: Added safer APIs for dealing

View File

@ -67,8 +67,10 @@ int main(int argc, char **argv)
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 @@ int main(int argc, char **argv)
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";
}