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)
Fri, May 15, 7:24 AM
Unknown Object (File)
Fri, May 15, 7:23 AM
Unknown Object (File)
Thu, May 14, 5:26 PM
Unknown Object (File)
Thu, May 14, 5:26 PM
Unknown Object (File)
Thu, May 14, 1:20 PM
Unknown Object (File)
Thu, May 14, 12:46 PM
Unknown Object (File)
Thu, May 14, 8:31 AM
Unknown Object (File)
Thu, May 14, 4:42 AM
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