git: sbin/hammer: err() on readhammerbuf() failure

Tomohiro Kusumi tkusumi at
Tue Jun 7 21:40:38 PDT 2016

commit e1c83ee56e07324e3921c1b96bb2a723847021c8
Author: Tomohiro Kusumi <kusumi.tomohiro at>
Date:   Wed Jun 8 11:13:36 2016 +0900

    sbin/hammer: err() on readhammerbuf() failure
    If readhammerbuf() failed to read 16KB buffer, it should err()
    regardless of AssertOnFailure flag.
    Continuing with bzero'd buffer won't help anything other than
    making a problem difficult to investigate.

Summary of changes:
 sbin/hammer/ondisk.c | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list