Lines Matching refs:sector
60 static Byte s_boot_sector [ BYTES_PER_SECTOR ]; /* boot sector */
61 static Byte s_fsinfo_sector [ BYTES_PER_SECTOR ]; /* FS Info sector */
62 static Byte s_fat_head [ BYTES_PER_SECTOR ]; /* first FAT sector */
63 static Byte s_zero_sector [ BYTES_PER_SECTOR ]; /* empty sector */
128 POKES( boot + 0x0b, BYTES_PER_SECTOR ); /* sector size */
146 POKES( boot + 0x30, 1 ); /* sector number of FS information sector */
147 POKES( boot + 0x32, BACKUP_BOOT_SECTOR ); /* sector number of a copy of this boot sector */
154 POKEB( boot + BYTES_PER_SECTOR-2, 0x55 ); /* boot sector signature */
157 /* FSInfo sector */
177 write_sector( FILE* file, Bytes sector )
179 int result = fwrite( sector, 1, BYTES_PER_SECTOR, file ) != BYTES_PER_SECTOR;
181 fprintf(stderr, "Failed to write sector of %d bytes: %s\n", BYTES_PER_SECTOR, strerror(errno));
293 * backup boot sector
294 * backup fsinfo sector