Lines Matching defs:sector
39 /* LATER TODO: add automatic boot sector generation from
42 file system (test if the boot sector still relies on that fact)! */
245 uint8_t sector;
355 /* take the sector position spos and convert it to Cylinder/Head/Sector position
360 int head,sector;
361 sector = spos % (bs->secs); spos/= bs->secs;
365 it happens if 32bit sector positions are used, while CHS is only 24bit.
368 chs->sector = 0xFF;
373 chs->sector = (uint8_t)( (sector+1) | ((spos>>8)<<6) );
1308 DLOG(fprintf(stderr, "sector %d not allocated\n", (int)sector_num));
1318 uint32_t sector=sector_num-s->faked_sectors,
1319 sector_offset_in_cluster=(sector%s->sectors_per_cluster),
1320 cluster_num=sector/s->sectors_per_cluster;
1778 DLOG(fprintf(stderr, "read cluster %d (sector %d)\n", (int)cluster_num, (int)cluster2sector(s, cluster_num)));
2672 * - do not allow writing to the boot sector