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
F151198111: D35131.id106084.diff
Mon, Apr 6, 6:44 PM
Unknown Object (File)
Sun, Apr 5, 12:03 AM
Unknown Object (File)
Sat, Apr 4, 5:36 PM
Unknown Object (File)
Sat, Apr 4, 12:50 PM
Unknown Object (File)
Mon, Mar 16, 10:41 AM
Unknown Object (File)
Wed, Mar 11, 7:41 AM
Unknown Object (File)
Tue, Mar 10, 7:53 PM
Unknown Object (File)
Feb 8 2026, 9:45 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

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable