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)
Sat, Apr 25, 8:31 PM
Unknown Object (File)
Fri, Apr 24, 1:16 PM
Unknown Object (File)
Mon, Apr 20, 2:57 PM
Unknown Object (File)
Sun, Apr 19, 8:46 AM
Unknown Object (File)
Sat, Apr 18, 12:35 PM
Unknown Object (File)
Fri, Apr 17, 10:11 AM
Unknown Object (File)
Wed, Apr 15, 8:38 AM
Unknown Object (File)
Thu, Apr 9, 11:22 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