Home
last modified time | relevance | path

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

/external/gptfdisk/
Dgptcurses.cc99 tempSpace->partNum = (int) i; in MakeSpacesFromParts()
114 tempSpace->partNum = -1; in AddEmptySpace()
236 if (space->partNum == -1) { // space is empty in ShowSpace()
243 printw("%d", space->partNum + 1); in ShowSpace()
309 void GPTDataCurses::DeletePartition(int partNum) { in DeletePartition() argument
310 if (!GPTData::DeletePartition(partNum)) in DeletePartition()
320 void GPTDataCurses::ShowInfo(int partNum) { in ShowInfo() argument
328 printw("Information for partition #%d\n\n", partNum + 1); in ShowInfo()
329 printw("Partition GUID code: %s (%s)\n", partitions[partNum].GetType().AsString().c_str(), in ShowInfo()
330 partitions[partNum].GetTypeName().c_str()); in ShowInfo()
[all …]
Dgptcl.cc65 int partNum = 0, newPartNum = -1, saveNonGPT = 1, retval = 0, pretend = 0; in DoOptions() local
165 partNum = (int) GetInt(attributeOperation, 1) - 1; in DoOptions()
166 if (partNum < 0) in DoOptions()
167 partNum = newPartNum; in DoOptions()
168 if ((partNum >= 0) && (partNum < (int) GetNumParts())) { in DoOptions()
169 switch (ManageAttributes(partNum, GetString(attributeOperation, 2), in DoOptions()
183 cerr << "Error: Invalid partition number " << partNum + 1 << "\n"; in DoOptions()
200 partNum = (int) GetInt(partName, 1) - 1; in DoOptions()
201 if (partNum < 0) in DoOptions()
202 partNum = newPartNum; in DoOptions()
[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()
205 int partNum; in CreatePartition() local
222 partNum = GetNumber(firstFreePart + 1, numParts, in CreatePartition()
[all …]
Dgpt.h136 void ShowPartDetails(uint32_t partNum);
141 int XFormDisklabel(uint32_t partNum);
149 int DeletePartition(uint32_t partNum);
150 uint32_t CreatePartition(uint32_t partNum, uint64_t startSector, uint64_t endSector);
155 int SetName(uint32_t partNum, const UnicodeString & theName);
179 bool ValidPartNum (const uint32_t partNum);
180 const GPTPart & operator[](uint32_t partNum) const;
191 int IsFree(uint64_t sector, uint32_t *partNum = NULL);
192 int IsFreePartNum(uint32_t partNum);
193 int IsUsedPartNum(uint32_t partNum);
[all …]
Dgpt.cc1580 void GPTData::ShowPartDetails(uint32_t partNum) { in ShowPartDetails() argument
1581 if ((partNum < numParts) && !IsFreePartNum(partNum)) { in ShowPartDetails()
1582 partitions[partNum].ShowDetails(blockSize); in ShowPartDetails()
1584 cout << "Partition #" << partNum + 1 << " does not exist.\n"; in ShowPartDetails()
1703 int GPTData::XFormDisklabel(uint32_t partNum) { in XFormDisklabel() argument
1712 if (partNum > high) { in XFormDisklabel()
1719 goOn = disklabel.ReadBSDData(&myDisk, partitions[partNum].GetFirstLBA(), in XFormDisklabel()
1720 partitions[partNum].GetLastLBA()); in XFormDisklabel()
1732 partitions[partNum].BlankPartition(); in XFormDisklabel()
1739 int i, partNum = 0, numDone = 0; in XFormDisklabel() local
[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.h50 void SetAttributes(uint32_t partNum);
51 int SetName(uint32_t partNum);
59 void WarnAboutIffyMBRPart(int partNum);
Dbasicmbr.cc281 int BasicMBRData::ReadLogicalParts(uint64_t extendedStart, int partNum) { in ReadLogicalParts() argument
290 while (another && (partNum < MAX_MBR_PARTS) && (partNum >= 0) && (allOK > 0)) { in ReadLogicalParts()
295 if(partNum > 0) //don't go negative in ReadLogicalParts()
296 partNum -= 1; in ReadLogicalParts()
299 EbrLocations[partNum] = offset; in ReadLogicalParts()
328 if ((partNum >= 0) && (partNum < MAX_MBR_PARTS) && (allOK > 0)) { in ReadLogicalParts()
338 partitions[partNum] = ebr.partitions[0]; in ReadLogicalParts()
340 partitions[partNum].SetStartLBA(ebr.partitions[0].firstLBA + offset); in ReadLogicalParts()
341 partitions[partNum].SetInclusion(LOGICAL); in ReadLogicalParts()
344 if ((ebr.partitions[1].firstLBA != UINT32_C(0)) && (partNum < (MAX_MBR_PARTS - 1))) { in ReadLogicalParts()
[all …]
Dgptpart.h69 void ShowAttributes(uint32_t partNum) {attributes.ShowAttributes(partNum);} in ShowAttributes() argument
92 void ShowSummary(int partNum, uint32_t blockSize); // display summary information (1-line)
Dattributes.cc93 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()
Dattributes.h30 void ShowAttributes(const uint32_t partNum);
33 …bool OperateOnAttributes(const uint32_t partNum, const string& attributeOperator, const string& at…
Dbasicmbr.h73 int ReadLogicalParts(uint64_t extendedStart, int partNum);
123 void RecomputeCHS(int partNum);
Dgptpart.cc302 void GPTPart::ShowSummary(int partNum, uint32_t blockSize) { argument
311 cout << partNum + 1 << " ";