Lines Matching refs:partNum
116 uint32_t partNum;
121 partNum = GetPartNum();
124 hexCode = partitions[partNum].GetHexType();
132 numDone = GPTData::XFormDisklabel(partNum);
148 uint32_t partNum;
154 partNum = GetNumber(low + 1, high + 1, low, prompt.str());
155 } else partNum = 1;
156 return (partNum - 1);
187 int partNum;
204 partNum = GetNumber(firstFreePart + 1, numParts,
206 if (partitions[partNum].GetFirstLBA() != 0)
207 cout << "partition " << partNum + 1 << " is in use.\n";
208 } while (partitions[partNum].GetFirstLBA() != 0);
236 firstFreePart = GPTData::CreatePartition(partNum, firstBlock, lastBlock);
237 partitions[partNum].ChangeType();
238 partitions[partNum].SetDefaultDescription();
249 int partNum;
255 partNum = GetNumber(low + 1, high + 1, low, prompt.str());
256 GPTData::DeletePartition(partNum - 1);
264 int partNum;
268 partNum = GetPartNum();
269 partitions[partNum].ChangeType();
278 int partNum;
283 partNum = GetPartNum();
287 SetPartitionGUID(partNum, (GUIDData) guidStr);
288 cout << "New GUID is " << partitions[partNum].GetUniqueGUID() << "\n";
298 void GPTDataTextUI::SetAttributes(uint32_t partNum) {
299 partitions[partNum].SetAttributes();
306 int GPTDataTextUI::SetName(uint32_t partNum) {
310 if (IsUsedPartNum(partNum)) {
317 partitions[partNum].SetName(theName);
319 cerr << "Invalid partition number (" << partNum << ")\n";
380 // Get partition number from user and then call ShowPartDetails(partNum)
383 int partNum;
387 partNum = GetPartNum();
388 ShowPartDetails(partNum);
528 void GPTDataTextUI::WarnAboutIffyMBRPart(int partNum) {
529 cout << "\a\nWarning! GPT partition " << partNum << " ends after the 2^32 sector mark! The partition\n"