/external/gptfdisk/ |
D | gptcurses.cc | 98 tempSpace->partNum = (int) i; in MakeSpacesFromParts() 113 tempSpace->partNum = -1; in AddEmptySpace() 235 if (space->partNum == -1) { // space is empty in ShowSpace() 242 printw("%d", space->partNum + 1); in ShowSpace() 308 void GPTDataCurses::DeletePartition(int partNum) { in DeletePartition() argument 309 if (!GPTData::DeletePartition(partNum)) in DeletePartition() 319 void GPTDataCurses::ShowInfo(int partNum) { in ShowInfo() argument 327 printw("Information for partition #%d\n\n", partNum + 1); in ShowInfo() 328 printw("Partition GUID code: %s (%s)\n", partitions[partNum].GetType().AsString().c_str(), in ShowInfo() 329 partitions[partNum].GetTypeName().c_str()); in ShowInfo() [all …]
|
D | gpttext.cc | 116 uint32_t partNum; in XFormDisklabel() local 121 partNum = GetPartNum(); in XFormDisklabel() 124 hexCode = partitions[partNum].GetHexType(); in XFormDisklabel() 132 numDone = GPTData::XFormDisklabel(partNum); in XFormDisklabel() 148 uint32_t partNum; in GetPartNum() local 154 partNum = GetNumber(low + 1, high + 1, low, prompt.str()); in GetPartNum() 155 } else partNum = 1; in GetPartNum() 156 return (partNum - 1); in GetPartNum() 187 int partNum; in CreatePartition() local 204 partNum = GetNumber(firstFreePart + 1, numParts, in CreatePartition() [all …]
|
D | gptcl.cc | 65 int partNum = 0, newPartNum = -1, saveNonGPT = 1, retval = 0, pretend = 0; in DoOptions() local 163 partNum = (int) GetInt(attributeOperation, 1) - 1; in DoOptions() 164 if (partNum < 0) in DoOptions() 165 partNum = newPartNum; in DoOptions() 166 if ((partNum >= 0) && (partNum < (int) GetNumParts())) { in DoOptions() 167 switch (ManageAttributes(partNum, GetString(attributeOperation, 2), in DoOptions() 181 cerr << "Error: Invalid partition number " << partNum + 1 << "\n"; in DoOptions() 198 partNum = (int) GetInt(partName, 1) - 1; in DoOptions() 199 if (partNum < 0) in DoOptions() 200 partNum = newPartNum; in DoOptions() [all …]
|
D | gpt.cc | 1462 void GPTData::ShowPartDetails(uint32_t partNum) { in ShowPartDetails() argument 1463 if ((partNum < numParts) && !IsFreePartNum(partNum)) { in ShowPartDetails() 1464 partitions[partNum].ShowDetails(blockSize); in ShowPartDetails() 1466 cout << "Partition #" << partNum + 1 << " does not exist.\n"; in ShowPartDetails() 1585 int GPTData::XFormDisklabel(uint32_t partNum) { in XFormDisklabel() argument 1594 if (partNum > high) { in XFormDisklabel() 1601 goOn = disklabel.ReadBSDData(&myDisk, partitions[partNum].GetFirstLBA(), in XFormDisklabel() 1602 partitions[partNum].GetLastLBA()); in XFormDisklabel() 1614 partitions[partNum].BlankPartition(); in XFormDisklabel() 1621 int i, partNum = 0, numDone = 0; in XFormDisklabel() local [all …]
|
D | gpt.h | 133 void ShowPartDetails(uint32_t partNum); 138 int XFormDisklabel(uint32_t partNum); 145 int DeletePartition(uint32_t partNum); 146 uint32_t CreatePartition(uint32_t partNum, uint64_t startSector, uint64_t endSector); 151 int SetName(uint32_t partNum, const UnicodeString & theName); 173 bool ValidPartNum (const uint32_t partNum); 174 const GPTPart & operator[](uint32_t partNum) const; 184 int IsFree(uint64_t sector, uint32_t *partNum = NULL); 185 int IsFreePartNum(uint32_t partNum); 186 int IsUsedPartNum(uint32_t partNum); [all …]
|
D | gptcurses.h | 71 int partNum; member 106 void DeletePartition(int partNum); 107 void ShowInfo(int partNum); 108 void ChangeName(int partNum); 109 void ChangeType(int partNum);
|
D | gpttext.h | 49 void SetAttributes(uint32_t partNum); 50 int SetName(uint32_t partNum); 58 void WarnAboutIffyMBRPart(int partNum);
|
D | basicmbr.cc | 249 int BasicMBRData::ReadLogicalParts(uint64_t extendedStart, int partNum) { in ReadLogicalParts() argument 258 while (another && (partNum < MAX_MBR_PARTS) && (partNum >= 0) && (allOK > 0)) { in ReadLogicalParts() 263 partNum -= 1; in ReadLogicalParts() 266 EbrLocations[partNum] = offset; in ReadLogicalParts() 295 if ((partNum >= 0) && (partNum < MAX_MBR_PARTS) && (allOK > 0)) { in ReadLogicalParts() 305 partitions[partNum] = ebr.partitions[0]; in ReadLogicalParts() 307 partitions[partNum].SetStartLBA(ebr.partitions[0].firstLBA + offset); in ReadLogicalParts() 308 partitions[partNum].SetInclusion(LOGICAL); in ReadLogicalParts() 311 if ((ebr.partitions[1].firstLBA != UINT32_C(0)) && (partNum < (MAX_MBR_PARTS - 1))) { in ReadLogicalParts() 313 partNum++; in ReadLogicalParts() [all …]
|
D | gptpart.h | 68 void ShowAttributes(uint32_t partNum) {attributes.ShowAttributes(partNum);} in ShowAttributes() argument 91 void ShowSummary(int partNum, uint32_t blockSize); // display summary information (1-line)
|
D | attributes.cc | 93 void Attributes::ShowAttributes(const uint32_t partNum) { in ShowAttributes() argument 100 cout << partNum+1 << ":" << bitNum << ":" << bitset in ShowAttributes() 146 bool Attributes::OperateOnAttributes(const uint32_t partNum, const string& attributeOperator, const… in OperateOnAttributes() argument 207 cout << partNum+1 << ":" << bitNum << ":" in OperateOnAttributes()
|
D | attributes.h | 30 void ShowAttributes(const uint32_t partNum); 33 …bool OperateOnAttributes(const uint32_t partNum, const string& attributeOperator, const string& at…
|
D | basicmbr.h | 71 int ReadLogicalParts(uint64_t extendedStart, int partNum); 121 void RecomputeCHS(int partNum);
|
D | gptpart.cc | 293 void GPTPart::ShowSummary(int partNum, uint32_t blockSize) { argument 302 cout << partNum + 1 << " ";
|