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)
Wed, Apr 23, 10:32 PM
Unknown Object (File)
Mon, Apr 21, 12:21 PM
Unknown Object (File)
Mar 30 2025, 2:20 AM
Unknown Object (File)
Mar 19 2025, 2:58 PM
Unknown Object (File)
Mar 13 2025, 2:40 AM
Unknown Object (File)
Mar 6 2025, 12:01 AM
Unknown Object (File)
Feb 22 2025, 5:18 AM
Unknown Object (File)
Feb 9 2025, 6:34 PM
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