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
F167852716: D35131.id.diff
Tue, Aug 25, 12:36 AM
F167849311: D35131.id106084.diff
Tue, Aug 25, 12:01 AM
Unknown Object (File)
Sat, Aug 22, 8:06 PM
Unknown Object (File)
Sat, Aug 22, 8:04 PM
Unknown Object (File)
Sat, Aug 22, 7:40 PM
Unknown Object (File)
Fri, Aug 21, 6:30 PM
Unknown Object (File)
Wed, Aug 19, 4:41 PM
Unknown Object (File)
Wed, Aug 19, 12:13 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