Added -F option to sgdisk
diff --git a/gpttext.cc b/gpttext.cc
index c37e01e..b9039d3 100644
--- a/gpttext.cc
+++ b/gpttext.cc
@@ -180,7 +180,7 @@
// Interactively create a partition
void GPTDataTextUI::CreatePartition(void) {
- uint64_t firstBlock, firstInLargest, lastBlock, sector;
+ uint64_t firstBlock, firstInLargest, lastBlock, sector, origSector;
uint32_t firstFreePart = 0;
ostringstream prompt1, prompt2, prompt3;
int partNum;
@@ -211,7 +211,15 @@
do {
sector = GetSectorNum(firstBlock, lastBlock, firstInLargest, prompt2.str());
} while (IsFree(sector) == 0);
- Align(§or); // Align sector to correct multiple
+ origSector = sector;
+ if (Align(§or)) {
+ cout << "Information: Moved requested sector from " << origSector << " to "
+ << sector << " in\norder to align on " << sectorAlignment
+ << "-sector boundaries.\n";
+ if (!beQuiet)
+ cout << "Use 'l' on the experts' menu to adjust alignment\n";
+ } // if
+ // Align(§or); // Align sector to correct multiple
firstBlock = sector;
// Get last block for new partitions...