git: sbin/hammer: Add debug prints while scanning node during recovery

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Wed Aug 10 23:24:17 PDT 2016


commit c4f94769b04363639f1b13d7e3140a8ed5dba9cf
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Wed Aug 10 02:21:11 2016 +0900

    sbin/hammer: Add debug prints while scanning node during recovery
    
    Prints "zone2offset nodetype elmnum elmtypes" with -d.
    Prints "zone2offset -" for invalid offsets in addition to above with -dd.
    
    -- example
    ...
    20000000207fd000 -
    20000000207fe000 -
    20000000207ff000 -
    2000000020800000 L 2 RR
    mkinode (dir) /tmp/xxxxx/PFS00000
    2000000020801000 I 52 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
    2000000020802000 L 32 RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
    mkdir /tmp/xxxxx/PFS00000/obj_0x0000000100010590
    ...

Summary of changes:
 sbin/hammer/cmd_recover.c | 31 +++++++++++++++++++++----------
 1 file changed, 21 insertions(+), 10 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list