提交 1e43bebf 编写于 作者: R Richard W.M. Jones

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

          is not defined because of ancient libparted
          (Soren Hansen).
上级 4ffb0358
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
......
......@@ -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";
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册