Lines Matching defs:partition

118     { 0x85, /*"Linux extendend partition"*/INTEL_EXTENDED_PARTITION_NAME,
236 const Partition* partition = partitions[lower];
237 result = (location >= partition->Offset() &&
238 location < partition->Offset() + partition->Size());
256 \param type ID of the partition type, it is in the range [0..255].
268 \param typeName Name of the partition type.
297 /*! \brief Converts content type to the partition type that fits best.
315 /*! \brief Finds next supported partition.
341 \brief Check whether the current type describes extended partition type.
425 // offsets and size must be block aligned, partition table and partition must
428 TRACE(("Partition::CheckLocation() - bad partition table offset: %lld "
444 TRACE(("Partition::CheckLocation() - partition table offset outside "
466 // To work around buggy (or older) BIOS, we shrink the partition size to
515 while (LogicalPartition* partition = fHead) {
516 fHead = partition->Next();
517 delete partition;
571 LogicalPartition* partition = NULL;
573 for (partition = fHead; index > 0; index--)
574 partition = partition->Next();
576 return partition;
581 PrimaryPartition::AddLogicalPartition(LogicalPartition* partition)
583 if (!partition)
586 partition->SetPrimaryPartition(this);
587 partition->SetPrevious(fTail);
589 fTail->SetNext(partition);
590 fTail = partition;
592 fHead = fTail = partition;
594 partition->SetNext(NULL);
601 PrimaryPartition::RemoveLogicalPartition(LogicalPartition* partition)
603 if (!partition || partition->GetPrimaryPartition() != this)
606 LogicalPartition* prev = partition->Previous();
607 LogicalPartition* next = partition->Next();
620 partition->SetNext(NULL);
621 partition->SetPrevious(NULL);
622 partition->SetPrimaryPartition(NULL);
660 // data and are only used to point to the next partition table in the
663 // "primary extended" partition, in another words, all inner extended
666 // partition table that contains their partition descriptor as their
760 PrimaryPartition* partition = NULL;
762 partition = fPrimaries + index;
763 return partition;
770 const PrimaryPartition* partition = NULL;
772 partition = fPrimaries + index;
773 return partition;
828 Partition* partition = NULL;
832 partition = fPrimaries + index;
840 partition = fPrimaries[primary].LogicalPartitionAt(index);
843 return partition;
859 // 1. check partition locations
865 // 2. check overlapping of partitions and location of partition tables
872 int32 tableOffsetCount = 1; // primary partition table
875 Partition* partition = (Partition*)PartitionAt(i);
876 if (!partition->IsExtended())
877 byOffset[byOffsetCount++] = partition;
879 // add only logical partition partition table locations
882 = partition->PartitionTableOffset();
894 Partition* partition = byOffset[i];
895 if (partition->Offset() < nextOffset && i > 0) {
898 - (nextOffset - partition->Offset());
902 TRACE(("partition offset hides previous partition."
903 " Removing previous partition from disk layout.\n"));
905 TRACE(("overlapping partitions! Setting partition %ld "
910 nextOffset = partition->Offset() + partition->Size();
913 // check uniqueness of partition table offsets and whether they lie
918 TRACE(("intel: PartitionMap::Check(): same partition table "
924 TRACE(("intel: PartitionMap::Check(): a partition table "
925 "lies inside a non-extended partition!\n"));