Fixes related to handling of GPTs created under Solaris

This commit is contained in:
srs5694
2012-01-20 22:37:12 -05:00
parent 0541b56fee
commit e69e6807cf
5 changed files with 34 additions and 505 deletions

View File

@@ -90,7 +90,8 @@ string GPTPart::GetDescription(void) {
// Return 1 if the partition is in use
int GPTPart::IsUsed(void) {
return (firstLBA != UINT64_C(0));
return (partitionType != GUIDData("0x00"));
// return (firstLBA != UINT64_C(0));
} // GPTPart::IsUsed()
// Set the type code to the specified one. Also changes the partition