]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Correctly update fs_dsize in growfs(8)
authorKirk McKusick <mckusick@FreeBSD.org>
Tue, 28 Jun 2022 04:46:15 +0000 (21:46 -0700)
committerKirk McKusick <mckusick@FreeBSD.org>
Tue, 28 Jun 2022 04:48:24 +0000 (21:48 -0700)
commit2049cc3218151f8d4108d878196905c34bbf15bc
treef8c14f42d8ff1f7fce0a4ce0287b02408ef41778
parent78dfcf256a443df2a43bdfcce6b7d7af143d964f
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
sbin/growfs/growfs.c