Version 0.6.3 release. Big-endian bug fix, new GUID generation method,

architectural changes.
This commit is contained in:
srs5694
2010-02-04 00:55:30 -05:00
parent 20e2a97ae6
commit 6699b01eda
21 changed files with 469 additions and 523 deletions

4
bsd.cc
View File

@@ -291,7 +291,7 @@ GPTPart BSDData::AsGPT(int i) {
guid.SetFirstLBA(sectorOne);
guid.SetLastLBA(sectorEnd);
// Now set a random unique GUID for the partition....
guid.SetUniqueGUID(1);
guid.RandomizeUniqueGUID();
// ... zero out the attributes and name fields....
guid.SetAttributes(UINT64_C(0));
// Most BSD disklabel type codes seem to be archaic or rare.
@@ -321,7 +321,7 @@ GPTPart BSDData::AsGPT(int i) {
guid.SetType(0x0700); break;
} // switch
// Set the partition name to the name of the type code....
guid.SetName(guid.GetNameType());
guid.SetName(guid.GetTypeName());
} // if
return guid;
} // BSDData::AsGPT()