Lines Matching refs:boot
18 * Initialize an MSDOS diskette. Read the boot sector, and switch to the
40 * Read the boot sector. We glean the disk parameters from this sector.
42 static int read_boot(Stream_t *Stream, struct bootsector * boot, int size)
50 if (force_read(Stream, (char *) boot, 0, size) != size)
80 static int get_media_type(Stream_t *St, struct bootsector *boot)
84 media = boot->descr;
107 struct bootsector *boot,
172 /* read the boot sector */
173 if ((r=read_boot(Stream, boot, out_dev->blocksize)) < 0){
175 "init %c: could not read boot sector",
180 if((*media= get_media_type(Stream, boot)) <= 0xf0 ){
181 if (boot->jump[2]=='L')
192 if(SET_GEOM(Stream, out_dev, dev, *media, boot)){
237 struct bootsector *boot = (struct bootsector *) boot0;
257 This->Direct = find_device(drive, mode, &dev, boot, name, &media,
309 This->cluster_size = boot->clsiz;
313 This->num_fat = boot->nfat;
316 labelBlock = &boot->ext.old.labelBlock;
318 labelBlock = &boot->ext.fat32.labelBlock;
389 if(fat_read(This, boot, dev.fat_bits, tot_sectors, dev.use_2m&0x7f)){