Lines Matching refs:fsinfo
56 u_char fsinfo[2 * DOSBOOTBLOCKSIZE]; local
130 || read(dosfs, fsinfo, sizeof fsinfo)
131 != sizeof fsinfo) {
135 if (memcmp(fsinfo, "RRaA", 4)
136 || memcmp(fsinfo + 0x1e4, "rrAa", 4)
137 || fsinfo[0x1fc]
138 || fsinfo[0x1fd]
139 || fsinfo[0x1fe] != 0x55
140 || fsinfo[0x1ff] != 0xaa
141 || fsinfo[0x3fc]
142 || fsinfo[0x3fd]
143 || fsinfo[0x3fe] != 0x55
144 || fsinfo[0x3ff] != 0xaa) {
147 memcpy(fsinfo, "RRaA", 4);
148 memcpy(fsinfo + 0x1e4, "rrAa", 4);
149 fsinfo[0x1fc] = fsinfo[0x1fd] = 0;
150 fsinfo[0x1fe] = 0x55;
151 fsinfo[0x1ff] = 0xaa;
152 fsinfo[0x3fc] = fsinfo[0x3fd] = 0;
153 fsinfo[0x3fe] = 0x55;
154 fsinfo[0x3ff] = 0xaa;
157 || write(dosfs, fsinfo, sizeof fsinfo)
158 != sizeof fsinfo) {
167 boot->FSFree = fsinfo[0x1e8] + (fsinfo[0x1e9] << 8)
168 + (fsinfo[0x1ea] << 16)
169 + (fsinfo[0x1eb] << 24);
170 boot->FSNext = fsinfo[0x1ec] + (fsinfo[0x1ed] << 8)
171 + (fsinfo[0x1ee] << 16)
172 + (fsinfo[0x1ef] << 24);
287 u_char fsinfo[2 * DOSBOOTBLOCKSIZE]; local
291 || read(dosfs, fsinfo, sizeof fsinfo) != sizeof fsinfo) {
295 fsinfo[0x1e8] = (u_char)boot->FSFree;
296 fsinfo[0x1e9] = (u_char)(boot->FSFree >> 8);
297 fsinfo[0x1ea] = (u_char)(boot->FSFree >> 16);
298 fsinfo[0x1eb] = (u_char)(boot->FSFree >> 24);
299 fsinfo[0x1ec] = (u_char)boot->FSNext;
300 fsinfo[0x1ed] = (u_char)(boot->FSNext >> 8);
301 fsinfo[0x1ee] = (u_char)(boot->FSNext >> 16);
302 fsinfo[0x1ef] = (u_char)(boot->FSNext >> 24);
305 || write(dosfs, fsinfo, sizeof fsinfo)
306 != sizeof fsinfo) {