Re: Mountroot problems on RPi3/aarch64

From: Mark Millard <marklmi_at_yahoo.com>
Date: Tue, 28 Jun 2022 07:29:11 UTC
Well, there is another check-in, but this time it is
a fix to growfs:.

https://lists.freebsd.org/archives/dev-commits-src-main/2022-June/007525.html

shows:

Kirk McKusick <mckusick_at_FreeBSD.org>
Date: Tue, 28 Jun 2022 04:48:39 UTC 
The branch main has been updated by mckusick:

URL: https://cgit.FreeBSD.org/src/commit/?id=2049cc3218151f8d4108d878196905c34bbf15bc

commit 2049cc3218151f8d4108d878196905c34bbf15bc
Author:     Kirk McKusick <mckusick@FreeBSD.org>
AuthorDate: 2022-06-28 04:46:15 +0000
Commit:     Kirk McKusick <mckusick@FreeBSD.org>
CommitDate: 2022-06-28 04:48:24 +0000

    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
. . .


Unfortunately, testing this looks like it would be going back
through your sequence/usage pattern that lead to the problem,
to see if it is avoided. It is not a way to fix an existing
UFS2/FFS problem.

===
Mark Millard
marklmi at yahoo.com