Page MenuHomeFreeBSD

nanobsd: embedded: Calculate FAT type and scheme
ClosedPublic

Authored by jlduran on Jan 30 2026, 7:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jul 29, 11:06 PM
Unknown Object (File)
Wed, Jul 29, 10:11 AM
Unknown Object (File)
Tue, Jul 28, 5:37 PM
Unknown Object (File)
Thu, Jul 23, 1:28 AM
Unknown Object (File)
Tue, Jul 21, 9:35 AM
Unknown Object (File)
Mon, Jul 20, 4:25 PM
Unknown Object (File)
Mon, Jul 20, 6:49 AM
Unknown Object (File)
Sat, Jul 18, 4:47 PM
Subscribers

Details

Summary

Determine the FAT (MS-DOS) type (FAT32, FAT16, or FAT12) and partition
scheme (fat32lba or fat16b) based on partition size.

Accept any (NetBSD) strsuftoll(3)-compatible string, as the value will
be fed to makefs(8) "-s" in a future commit.

NANO_SLICE_FAT_SIZEs defined in sectors (ending with an "s") will not be
supported. As a workaround, the letter "b" (blocks) may be used.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

  • Implement a strsuftoll(3)-compatible function, as the value of NANO_SLICE_FAT_SIZE should be compatible with makefs(8) -s.
This revision is now accepted and ready to land.Feb 1 2026, 5:40 AM