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, Mar 20, 1:57 AM
Unknown Object (File)
Thu, Mar 19, 3:52 PM
Unknown Object (File)
Wed, Mar 18, 2:13 AM
Unknown Object (File)
Wed, Mar 18, 2:07 AM
Unknown Object (File)
Sat, Mar 14, 11:23 AM
Unknown Object (File)
Sat, Mar 14, 11:19 AM
Unknown Object (File)
Fri, Mar 13, 6:29 PM
Unknown Object (File)
Wed, Mar 11, 12: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