git: usr.sbin/fstyp: Don't assert(0) for invalid HAMMER1/2 ondisk

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat Jan 9 07:18:25 PST 2021


commit 5721f2ecc8eae27f01efbf02db8c191f8e41938c
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Sat Jan 9 23:17:04 2021 +0900

    usr.sbin/fstyp: Don't assert(0) for invalid HAMMER1/2 ondisk
    
    Given purpose of fstyp, don't kill the process for invalid ondisk.
    Just fail HAMMER1/2 detection.

Summary of changes:
 usr.sbin/fstyp/hammer.c  | 22 +++++++++++-----------
 usr.sbin/fstyp/hammer2.c |  6 +++---
 2 files changed, 14 insertions(+), 14 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5721f2ecc8eae27f01efbf02db8c191f8e41938c


-- 
DragonFly BSD source repository


More information about the Commits mailing list