Lines Matching refs:block
55 u_char block[DOSBOOTBLOCKSIZE]; local
60 if (read(dosfs, block, sizeof block) < sizeof block) {
65 if (block[510] != 0x55 || block[511] != 0xaa) {
66 pfatal("Invalid signature in boot block: %02x%02x", block[511], block[510]);
74 boot->BytesPerSec = block[11] + (block[12] << 8);
75 boot->SecPerClust = block[13];
76 boot->ResSectors = block[14] + (block[15] << 8);
77 boot->FATs = block[16];
78 boot->RootDirEnts = block[17] + (block[18] << 8);
79 boot->Sectors = block[19] + (block[20] << 8);
80 boot->Media = block[21];
81 boot->FATsmall = block[22] + (block[23] << 8);
82 boot->SecPerTrack = block[24] + (block[25] << 8);
83 boot->Heads = block[26] + (block[27] << 8);
84 boot->HiddenSecs = block[28] + (block[29] << 8) + (block[30] << 16) + (block[31] << 24);
85 boot->HugeSectors = block[32] + (block[33] << 8) + (block[34] << 16) + (block[35] << 24);
92 boot->FATsecs = block[36] + (block[37] << 8)
93 + (block[38] << 16) + (block[39] << 24);
94 if (block[40] & 0x80)
95 boot->ValidFat = block[40] & 0x0f;
98 if (block[42] || block[43]) {
101 block[43], block[42]);
104 boot->RootCl = block[44] + (block[45] << 8)
105 + (block[46] << 16) + (block[47] << 24);
106 boot->FSInfo = block[48] + (block[49] << 8);
107 boot->Backup = block[50] + (block[51] << 8);
110 if (!memcmp(&block[3], "EXFAT ", 8)) {
181 backup[65] = block[65]; /* XXX */
182 if (memcmp(block + 11, backup + 11, 79)) {
198 snprintf(tmp2, sizeof(tmp2), "%.2x ", block[11 + i]);