Lines Matching defs:sector
445 // Write a single MBR record to the specified sector. Used by the like-named
449 int BasicMBRData::WriteMBRData(struct TempMBR & mbr, DiskIO *theDisk, uint64_t sector) {
465 if (allOK && theDisk->Seek(sector)) {
487 } // BasicMBRData::WriteMBRData(uint64_t sector)
596 // Blanks the 2nd (sector #1, numbered from 0) and last sectors of the disk,
597 // but only if GPT data are verified on the disk, and only for the sector(s)
697 uint64_t cylinder, head, sector; // all numbered from 0
721 sector = remainder;
726 if (sector < numSecspTrack) {
727 chs[1] = (uint8_t) ((sector + 1) + (cylinder >> 8) * 64);
765 cout << "\nWarning: 0xEE partition doesn't start on sector 1. This can cause "
864 // Returns the first sector occupied by any logical partition. Note that
880 // Returns the last sector occupied by any logical partition, or 0 if
929 // Returns 1 if there's at least one free sector immediately preceding
945 // are contiguous and have at least one preceding empty sector,
1424 // existing partition, move it to the next sector after that
1444 // Finds the last free sector on the disk from start forward.
1463 // Finds the first free sector on the disk from start backward.
1480 // Note: If the sector immediately before a logical partition is in use by
1482 // sector, rather than EBR.
1483 int BasicMBRData::SectorUsedAs(uint64_t sector, int topPartNum) {
1487 if ((partitions[i].GetStartLBA() <= sector) && (partitions[i].GetLastLBA() >= sector))
1489 if ((partitions[i].GetStartLBA() == (sector + 1)) && (partitions[i].GetInclusion() == LOGICAL))
1491 if (sector == 0)
1493 if (sector >= diskSize)