sbin/hammer: Add debug prints while scanning node during recovery
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Tue, 9 Aug 2016 17:21:11 +0000 (02:21 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Thu, 11 Aug 2016 06:02:50 +0000 (15:02 +0900)
commitc4f94769b04363639f1b13d7e3140a8ed5dba9cf
tree1d2ca62d11f2662860bc8264aff04e4cb8696f8a
parent9ca5256811d59b81cf43ef4ca3fbf4fe2de81490
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
...
sbin/hammer/cmd_recover.c