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

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Tue Jun 7 21:40:38 PDT 2016


commit e1c83ee56e07324e3921c1b96bb2a723847021c8
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
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(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list