Home
last modified time | relevance | path

Searched refs:partNum (Results 1 – 13 of 13) sorted by relevance

/external/gptfdisk/
Dgptcurses.cc98 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 …]
Dgpttext.cc116 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 …]
Dgptcl.cc65 int partNum = 0, newPartNum = -1, saveNonGPT = 1, retval = 0, pretend = 0; in DoOptions() local
162 partNum = (int) GetInt(attributeOperation, 1) - 1; in DoOptions()
163 if (partNum < 0) in DoOptions()
164 partNum = newPartNum; in DoOptions()
165 if ((partNum >= 0) && (partNum < (int) GetNumParts())) { in DoOptions()
166 switch (ManageAttributes(partNum, GetString(attributeOperation, 2), in DoOptions()
180 cerr << "Error: Invalid partition number " << partNum + 1 << "\n"; in DoOptions()
197 partNum = (int) GetInt(partName, 1) - 1; in DoOptions()
198 if (partNum < 0) in DoOptions()
199 partNum = newPartNum; in DoOptions()
[all …]
Dgpt.cc1452 void GPTData::ShowPartDetails(uint32_t partNum) { in ShowPartDetails() argument
1453 if ((partNum < numParts) && !IsFreePartNum(partNum)) { in ShowPartDetails()
1454 partitions[partNum].ShowDetails(blockSize); in ShowPartDetails()
1456 cout << "Partition #" << partNum + 1 << " does not exist.\n"; in ShowPartDetails()
1575 int GPTData::XFormDisklabel(uint32_t partNum) { in XFormDisklabel() argument
1584 if (partNum > high) { in XFormDisklabel()
1591 goOn = disklabel.ReadBSDData(&myDisk, partitions[partNum].GetFirstLBA(), in XFormDisklabel()
1592 partitions[partNum].GetLastLBA()); in XFormDisklabel()
1604 partitions[partNum].BlankPartition(); in XFormDisklabel()
1611 int i, partNum = 0, numDone = 0; in XFormDisklabel() local
[all …]
Dgpt.h132 void ShowPartDetails(uint32_t partNum);
137 int XFormDisklabel(uint32_t partNum);
144 int DeletePartition(uint32_t partNum);
145 uint32_t CreatePartition(uint32_t partNum, uint64_t startSector, uint64_t endSector);
150 int SetName(uint32_t partNum, const UnicodeString & theName);
172 bool ValidPartNum (const uint32_t partNum);
173 const GPTPart & operator[](uint32_t partNum) const;
183 int IsFree(uint64_t sector, uint32_t *partNum = NULL);
184 int IsFreePartNum(uint32_t partNum);
185 int IsUsedPartNum(uint32_t partNum);
[all …]
Dgptcurses.h71 int partNum; member
106 void DeletePartition(int partNum);
107 void ShowInfo(int partNum);
108 void ChangeName(int partNum);
109 void ChangeType(int partNum);
Dgpttext.h49 void SetAttributes(uint32_t partNum);
50 int SetName(uint32_t partNum);
58 void WarnAboutIffyMBRPart(int partNum);
Dbasicmbr.cc247 int BasicMBRData::ReadLogicalParts(uint64_t extendedStart, int partNum) { in ReadLogicalParts() argument
256 while (another && (partNum < MAX_MBR_PARTS) && (partNum >= 0) && (allOK > 0)) { in ReadLogicalParts()
261 partNum -= 1; in ReadLogicalParts()
264 EbrLocations[partNum] = offset; in ReadLogicalParts()
293 if ((partNum >= 0) && (partNum < MAX_MBR_PARTS) && (allOK > 0)) { in ReadLogicalParts()
303 partitions[partNum] = ebr.partitions[0]; in ReadLogicalParts()
305 partitions[partNum].SetStartLBA(ebr.partitions[0].firstLBA + offset); in ReadLogicalParts()
306 partitions[partNum].SetInclusion(LOGICAL); in ReadLogicalParts()
309 if ((ebr.partitions[1].firstLBA != UINT32_C(0)) && (partNum < (MAX_MBR_PARTS - 1))) { in ReadLogicalParts()
311 partNum++; in ReadLogicalParts()
[all …]
Dgptpart.h68 void ShowAttributes(uint32_t partNum) {attributes.ShowAttributes(partNum);} in ShowAttributes() argument
91 void ShowSummary(int partNum, uint32_t blockSize); // display summary information (1-line)
Dattributes.cc91 void Attributes::ShowAttributes(const uint32_t partNum) { in ShowAttributes() argument
98 cout << partNum+1 << ":" << bitNum << ":" << bitset in ShowAttributes()
144 bool Attributes::OperateOnAttributes(const uint32_t partNum, const string& attributeOperator, const… in OperateOnAttributes() argument
205 cout << partNum+1 << ":" << bitNum << ":" in OperateOnAttributes()
Dattributes.h30 void ShowAttributes(const uint32_t partNum);
33 …bool OperateOnAttributes(const uint32_t partNum, const string& attributeOperator, const string& at…
Dbasicmbr.h71 int ReadLogicalParts(uint64_t extendedStart, int partNum);
121 void RecomputeCHS(int partNum);
Dgptpart.cc291 void GPTPart::ShowSummary(int partNum, uint32_t blockSize) { argument
300 cout << partNum + 1 << " ";