Lines Matching defs:sector
109 check_label(struct biosdisk *d, int sector)
114 if (readsects(d->dev, sector + LABELSECTOR, d->buf, 1)) {
129 d->boff = sector;
140 int sector, i;
166 printf("error reading MBR sector %d\n", this_ext);
176 sector = this_ext + mbr[i].mbrp_start;
178 error = check_label(d, sector);
188 sector_386bsd = sector;
196 p->p_offset = sector;
208 sector = 0;
212 sector = sector_386bsd;
224 error = check_label(d, sector);
239 * Determine likely partition for possible sector number of dos
243 biosdisk_findptn(int biosdev, u_int sector)
259 if (lp->d_partitions[partition].p_offset == sector)