HomeFreeBSD

Correctly update fs_dsize in growfs(8)

Description

Correctly update fs_dsize in growfs(8)

When growing a UFS/FFS filesystem, the size of the summary information
may expand into additional blocks. These blocks must be removed from
fs_dsize which records the number of blocks in the filesystem that can
be used to hold filesystem data.

While here also update the fs_old_dsize and fs_old_size fields for
compatibility with kernels that were compiled before the addition
of UFS2.

Reported by: Edward Tomasz Napiera
MFC after: 1 week

Details

Provenance
mckusickAuthored on Jun 28 2022, 4:46 AM
Parents
rG78dfcf256a44: Eliminate set but not used variable.
Branches
Unknown
Tags
Unknown