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
Unknown Object (File)
Fri, Aug 14, 1:37 PM
Unknown Object (File)
Wed, Aug 12, 10:42 PM
Unknown Object (File)
Sat, Aug 8, 6:04 PM
Unknown Object (File)
Fri, Jul 31, 10:06 AM
Unknown Object (File)
Sun, Jul 26, 11:06 AM
Unknown Object (File)
Mon, Jul 20, 5:12 PM
Unknown Object (File)
Jul 16 2026, 3:14 AM
Unknown Object (File)
Jul 14 2026, 12:14 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