Home | History | Annotate | Download | only in gptfdisk

Lines Matching full:logical

150    // Empty existing MBR data, including the logical partitions...
194 // Load logical partition data, if any is found....
202 cerr << "Error reading logical partitions! List may be truncated!\n";
231 cerr << "Warning! MBR Logical partitions found on a hybrid MBR disk! This is an\n"
239 // This is a function to read all the logical partitions, following the
240 // logical partition linked list from the disk and storing the basic data in the
242 // that index if there was a problem. (Some problems can leave valid logical
258 if (EbrLocations[i] == offset) { // already read this one; infinite logical partition loop!
259 cerr << "Logical partition infinite loop detected! This is being corrected.\n";
270 cerr << "Error seeking to or reading logical partition data from " << offset
271 << "!\nSome logical partitions may be missing!\n";
283 cerr << "EBR signature for logical partition invalid; read 0x";
295 // a logical partition and then pointing to another EBR. Thus, we skip
296 // the logical partition when this is the case....
299 cout << "EBR describes a logical partition!\n";
306 partitions[partNum].SetInclusion(LOGICAL);
322 // MBR itself and any defined logical partitions, provided there's an
340 // MBR itself and any defined logical partitions.
364 // Set up tempMBR with some constant data for logical partitions...
411 // function to write both the MBR and multiple EBR (for logical partition)
488 cout << "Number Boot Start Sector End Sector Status Logical Primary Code\n";
737 // required to hold any logical partitions found.
745 if (partitions[i].GetInclusion() == LOGICAL)
752 // Returns the number of logical partitions.
757 if (partitions[i].GetInclusion() == LOGICAL)
769 if ((partitions[i].GetInclusion() == LOGICAL) ||
791 // First determine if it can be logical....
793 lStart = partitions[i].GetStartLBA(); // start of potential logical part.
796 // Assume it can be logical, then search for primaries that make it
812 partitions[i].SetCanBeLogical(lastLogical == 0); // can be logical only if no logicals already
818 if ((partitions[i].GetInclusion() == LOGICAL) && (numLogicals == 1) &&
829 // Returns the first sector occupied by any logical partition. Note that
830 // this does NOT include the logical partition's EBR! Returns UINT32_MAX
831 // if there are no logical partitions defined.
837 if ((partitions[i].GetInclusion() == LOGICAL) &&
845 // Returns the last sector occupied by any logical partition, or 0 if
846 // there are no logical partitions defined.
852 if ((partitions[i].GetInclusion() == LOGICAL) &&
859 // Returns 1 if logical partitions are contiguous (have no primaries
895 // all partitions flagged as logical; 0 if any logical partition lacks
901 if ((partitions[i].GetStartLBA() > 0) && (partitions[i].GetInclusion() == LOGICAL)) {
1017 partitions[num].SetInclusion(LOGICAL);
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
1195 partitions[i].SetInclusion(LOGICAL);
1204 if ((NumPrimaries() < 4) && (partitions[earliestPart].GetInclusion() == LOGICAL))
1238 // Locates primary partitions located between logical partitions and
1252 partitions[i].SetInclusion(LOGICAL);
1259 // If MBR data aren't legal, adjust primary/logical assignments and,
1274 // Removes logical partitions and deactivated partitions from first four
1327 // Create an extended partition, if necessary, to hold the logical partitions.
1338 // Move primaries out of logical space...
1444 // Returns NONE (unused), PRIMARY, LOGICAL, EBR (for EBR or MBR), or INVALID.
1445 // Note: If the sector immediately before a logical partition is in use by
1446 // another partition, this function returns PRIMARY or LOGICAL for that
1454 if ((partitions[i].GetStartLBA() == (sector + 1)) && (partitions[i].GetInclusion() == LOGICAL))
1525 // Return a pointer to a primary or logical partition, or NULL if
1567 num = GetNumber(1, MAX_MBR_PARTS, 1, "Partition to set as logical: ") - 1;
1568 SetInclusionwChecks(num, LOGICAL);
1576 cout << "\n** NOTE: Partition numbers do NOT indicate final primary/logical "
1629 cout << "l\tset partition as logical\n";