git: sbin/hammer2: Fix total_size inconsistency check

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Wed Aug 11 07:20:44 PDT 2021


commit c5fda8154f8b7af35a1c76971fac62ae925e3cb6
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Tue Aug 10 15:18:57 2021 +0900

    sbin/hammer2: Fix total_size inconsistency check
    
    This should be errx(). The ondisk total_size != sum of volumes
    means total_size is corrupted or volume(s) missing, regardless of
    <4 bad volume headers.

Summary of changes:
 sbin/hammer2/ondisk.c | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c5fda8154f8b7af35a1c76971fac62ae925e3cb6


-- 
DragonFly BSD source repository



More information about the Commits mailing list