summaryrefslogtreecommitdiff
path: root/gpt.cc
diff options
context:
space:
mode:
authorsrs5694 <srs5694@users.sourceforge.net>2013-01-09 12:55:40 -0500
committersrs5694 <srs5694@users.sourceforge.net>2013-01-09 12:55:40 -0500
commit0741fa21ac6cb477891ef15f269c8c8f36cac7c6 (patch)
treeb37926ea88396302141f9feeb1806c6bf3ac2455 /gpt.cc
parentd8eed4629449a325999808a0170dbda53bd4a6df (diff)
downloadsgdisk-0741fa21ac6cb477891ef15f269c8c8f36cac7c6.tar.gz
0.8.6 release.
Diffstat (limited to 'gpt.cc')
-rw-r--r--gpt.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gpt.cc b/gpt.cc
index e0f5899..40dd55e 100644
--- a/gpt.cc
+++ b/gpt.cc
@@ -261,10 +261,10 @@ int GPTData::Verify(void) {
if ((mainHeader.lastUsableLBA >= diskSize) || (mainHeader.lastUsableLBA > mainHeader.backupLBA)) {
problems++;
- cout << "\nProblem: GPT claims the disk is larger than it is!\n";
- cout << "(Claimed last usable sector is " << mainHeader.lastUsableLBA << ", but\n";
- cout << "backup header is at " << mainHeader.backupLBA << " and disk size is\n";
- cout << diskSize << "sectors\n";
+ cout << "\nProblem: GPT claims the disk is larger than it is! (Claimed last usable\n"
+ << "sector is " << mainHeader.lastUsableLBA << ", but backup header is at\n"
+ << mainHeader.backupLBA << " and disk size is " << diskSize << " sectors.\n"
+ << "The 'e' option on the experts' menu will probably fix this problem\n";
}
// Check for overlapping partitions....
@@ -1741,7 +1741,7 @@ uint32_t GPTData::CreatePartition(uint32_t partNum, uint64_t startSector, uint64
if (FindLastInFree(startSector) >= endSector) {
partitions[partNum].SetFirstLBA(startSector);
partitions[partNum].SetLastLBA(endSector);
- partitions[partNum].SetType(DEFAULT_TYPE);
+ partitions[partNum].SetType(DEFAULT_GPT_TYPE);
partitions[partNum].RandomizeUniqueGUID();
} else retval = 0; // if free space until endSector
} else retval = 0; // if startSector is free