Home
last modified time | relevance | path

Searched refs:FATsecs (Results 1 – 4 of 4) sorted by relevance

/netbsd/sbin/fsck_msdos/
H A Dboot.c104 boot->FATsecs = boot->FATsmall; in readboot()
116 boot->FATsecs = block[36] + (block[37] << 8) in readboot()
218 if (boot->FATsecs == 0) { in readboot()
219 pfatal("Invalid number of FAT sectors: %u\n", boot->FATsecs); in readboot()
226 + boot->FATs * boot->FATsecs; in readboot()
269 boot->NumFatEntries = (boot->FATsecs * boot->BytesPerSec) / 4; in readboot()
272 boot->NumFatEntries = (boot->FATsecs * boot->BytesPerSec) / 2; in readboot()
275 boot->NumFatEntries = (boot->FATsecs * boot->BytesPerSec * 2) / 3; in readboot()
281 boot->NumClusters, boot->FATsecs); in readboot()
H A Dfat.c88 *buffer = malloc(len = boot->FATsecs * boot->BytesPerSec); in _readfat()
94 off = boot->ResSectors + no * boot->FATsecs; in _readfat()
102 if ((size_t)read(fs, *buffer, boot->FATsecs * boot->BytesPerSec) in _readfat()
103 != boot->FATsecs * boot->BytesPerSec) { in _readfat()
486 buffer = malloc(fatsz = boot->FATsecs * boot->BytesPerSec); in writefat()
571 off = boot->ResSectors + i * boot->FATsecs; in writefat()
H A Ddosfs.h71 u_int32_t FATsecs; /* how many sectors are in FAT */ member
H A Ddir.c491 off = boot->ResSectors + boot->FATs * boot->FATsecs; in readDosDirSection()