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)
Sun, Apr 14, 9:21 PM
Unknown Object (File)
Sun, Apr 14, 8:59 PM
Unknown Object (File)
Mar 7 2024, 12:24 PM
Unknown Object (File)
Feb 5 2024, 8:58 PM
Unknown Object (File)
Jan 14 2024, 8:42 AM
Unknown Object (File)
Jan 3 2024, 6:49 PM
Unknown Object (File)
Dec 22 2023, 9:43 PM
Unknown Object (File)
Dec 21 2023, 9:54 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

Lint
Lint Skipped
Unit
Tests Skipped