Lines Matching refs:PRIMARY
166 partitions[i].SetInclusion(PRIMARY);
205 } // if primary partition is extended
206 } // for primary partition loop
488 cout << "Number Boot Start Sector End Sector Status Logical Primary Code\n";
736 // Returns the number of primary partitions, including the extended partition
743 if (partitions[i].GetInclusion() == PRIMARY)
770 (partitions[i].GetInclusion() == PRIMARY))
800 if ((i != j) && (partitions[j].GetInclusion() == PRIMARY)) {
814 // Now determine if it can be primary. Start by assuming it can be...
816 if ((numPrimaries >= 4) && (partitions[i].GetInclusion() != PRIMARY)) {
870 if ((partitions[i].GetInclusion() == PRIMARY) &&
915 // primary status. Also does NOT consider partition order; there
1015 partitions[num].SetInclusion(PRIMARY);
1091 // Set the inclusion status (PRIMARY, LOGICAL, or NONE) with some sanity
1098 if ((inclStatus == PRIMARY) || (inclStatus == LOGICAL) || (inclStatus == NONE)) {
1125 // does NOT pay attention to primary/logical assignment, which is
1197 partitions[i].SetInclusion(PRIMARY);
1215 partitions[i].SetInclusion(PRIMARY);
1223 // Remove primary partitions in excess of 4, starting with the later ones,
1230 if (partitions[i].GetInclusion() == PRIMARY) {
1238 // Locates primary partitions located between logical partitions and
1248 if ((partitions[i].GetInclusion() == PRIMARY) &&
1259 // If MBR data aren't legal, adjust primary/logical assignments and,
1275 // entries (primary space).
1282 if ((partitions[i].GetInclusion() != PRIMARY) && (partitions[i].GetLengthLBA() > 0)) {
1309 if (partitions[i].GetInclusion() == PRIMARY) {
1313 if (partitions[j].GetInclusion() != PRIMARY) {
1336 // Move logicals out of primary space...
1348 temp.SetInclusion(PRIMARY);
1357 cerr << "Could not create extended partition; no room in primary table!\n";
1444 // Returns NONE (unused), PRIMARY, LOGICAL, EBR (for EBR or MBR), or INVALID.
1446 // another partition, this function returns PRIMARY or LOGICAL for that
1525 // Return a pointer to a primary or logical partition, or NULL if
1576 cout << "\n** NOTE: Partition numbers do NOT indicate final primary/logical "
1592 num = GetNumber(1, MAX_MBR_PARTS, 1, "Partition to set as primary: ") - 1;
1593 SetInclusionwChecks(num, PRIMARY);
1633 cout << "r\tset partition as primary\n";