diff options
author | srs5694 <srs5694@users.sourceforge.net> | 2010-02-04 00:55:30 -0500 |
---|---|---|
committer | srs5694 <srs5694@users.sourceforge.net> | 2010-02-04 00:55:30 -0500 |
commit | 6699b01eda84d24bfaf80ad725304fef2b0e1b2a (patch) | |
tree | d1bdfd45d748bdc1a87b45dcd043c51e75ab6945 /bsd.cc | |
parent | 20e2a97ae67f2bbe31b354255671b3aed3793ee3 (diff) | |
download | gptfdisk-6699b01eda84d24bfaf80ad725304fef2b0e1b2a.tar.gz |
Version 0.6.3 release. Big-endian bug fix, new GUID generation method,
architectural changes.
Diffstat (limited to 'bsd.cc')
-rw-r--r-- | bsd.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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() |