Page MenuHomeFreeBSD

nanobsd: Change sizes to use bytes exclusively
Needs ReviewPublic

Authored by senguptaangshuman17_gmail.com on Wed, Aug 19, 10:24 AM.
Tags
None
Referenced Files
F168187738: D58969.diff
Wed, Aug 26, 7:03 PM
F168161477: D58969.id185107.diff
Wed, Aug 26, 4:08 PM
F168161474: D58969.id185003.diff
Wed, Aug 26, 4:08 PM
F168161470: D58969.id184959.diff
Wed, Aug 26, 4:08 PM
F168161129: D58969.diff
Wed, Aug 26, 4:05 PM
F168151210: D58969.id185107.diff
Wed, Aug 26, 3:00 PM
F168092670: D58969.id184541.diff
Wed, Aug 26, 8:39 AM
Unknown Object (File)
Wed, Aug 26, 7:05 AM
Subscribers

Details

Reviewers
jlduran
jrm
ashish
Summary

Accept sizes in bytes instead of 512 byte sectors. Replace
strsuftoll with strtobytes, which accepts powers of two and powers
of ten. Legacy configurations keep working with sector sizes.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 76024
Build 72907: arc lint + arc unit

Event Timeline

Since this is a legacy-breaking change (perhaps the most significant one), we should provide an easy migration path. For example, in the commit message, we can explain that users who want to keep using sector sizes could add an s (for sector) suffix to its current values when migrating to the default plan, this is a deliberate change from strsuftoll, which uses b (for block) for that same purpose.

tools/tools/nanobsd/defaults.sh
1479

This change seems unrelated.