git: sbin/hammer: Add additional info to "BO"

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Mar 12 08:59:18 PDT 2015


commit 41aa2ab39af43c9857de1b01154650266c6f2a48
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Wed Mar 11 21:28:32 2015 +0900

    sbin/hammer: Add additional info to "BO"
    
    - Make hammer show command print additional 3 characters after "BO"
      based on error type.
    
    - Happened to see following "BO" while running a test script to
      observe btree growth but there are 9 cases that cause "BO" (EDOM).
      It needs additional info to tell what caused "BO".
    
      G------ ELM  1 R lo=00000001 obj=0000000000000001 rt=11 key=2ec64cba42580000 ot=02
                       tids 0000000100008020:0000000000000000
      BO               dataoff=9000000022000080/21 crc=94bf75d4
                       fills=z9:68=BADZ
                       dir-entry ino=0000000100000576 lo=00000000 name="0.out"
      G------ ELM  2 R lo=00000001 obj=0000000100000576 rt=01 key=0000000000000000 ot=02
                       tids 0000000100008020:0000000000000000
      BO               dataoff=9000000022000000/128 crc=19f26cd
                       fills=z9:68=BADZ

Summary of changes:
 sbin/hammer/blockmap.c | 18 +++++++++---------
 sbin/hammer/cmd_show.c | 26 ++++++++++++++++++++++++--
 2 files changed, 33 insertions(+), 11 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/41aa2ab39af43c9857de1b01154650266c6f2a48


-- 
DragonFly BSD source repository


More information about the Commits mailing list