Page MenuHomeFreeBSD

nanobsd: embedded: Calculate FAT type and scheme
AcceptedPublic

Authored by jlduran on Jan 30 2026, 7:44 PM.
Tags
None
Referenced Files
F147508059: D54975.id170925.diff
Wed, Mar 11, 12:47 PM
F147500208: D54975.id170802.diff
Wed, Mar 11, 11:27 AM
F147413114: D54975.diff
Tue, Mar 10, 7:06 PM
Unknown Object (File)
Mon, Mar 9, 6:58 PM
Unknown Object (File)
Mon, Mar 2, 9:46 PM
Unknown Object (File)
Mon, Mar 2, 8:05 AM
Unknown Object (File)
Tue, Feb 24, 9:18 AM
Unknown Object (File)
Mon, Feb 23, 1:16 AM
Subscribers

Details

Reviewers
imp
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 70311
Build 67194: arc lint + arc unit