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)
Thu, Apr 23, 11:01 AM
Unknown Object (File)
Wed, Apr 15, 7:30 PM
Unknown Object (File)
Wed, Apr 15, 12:21 PM
Unknown Object (File)
Sun, Apr 12, 5:33 PM
Unknown Object (File)
Sun, Apr 12, 5:22 PM
Unknown Object (File)
Fri, Apr 10, 6:23 AM
Unknown Object (File)
Tue, Apr 7, 6:02 PM
Unknown Object (File)
Mon, Apr 6, 3:34 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