Page MenuHomeFreeBSD

makefs(8): Fix calculation of metadata segmets sizes
ClosedPublic

Authored by kd on May 5 2022, 12:49 PM.
Tags
None
Referenced Files
F139609069: D35131.id105702.diff
Sun, Dec 14, 2:43 AM
Unknown Object (File)
Tue, Dec 9, 1:22 PM
Unknown Object (File)
Tue, Nov 25, 7:16 PM
Unknown Object (File)
Fri, Nov 21, 1:04 PM
Unknown Object (File)
Fri, Nov 21, 1:02 PM
Unknown Object (File)
Fri, Nov 21, 1:00 PM
Unknown Object (File)
Fri, Nov 21, 12:56 PM
Unknown Object (File)
Nov 7 2025, 11:23 AM
Subscribers

Details

Summary
  • Remove "ncg" variable. It's always 1 and it was used to multiply stuff.

Adjust size calculations to match what is done in ffs_mkfs routine:

  • Depending on the UFS version the superblock is stored at a different offset. Take that into account.
  • Add the cylinder group block size.
  • All of the above has to be aligned to the block size.

PR: 229929 (partially)

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped