commit dce7ae2c730e5e9d4b2438f6dffd053eef34c056 Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Sun Aug 21 21:16:19 2016 +0900
sbin/hammer: Add print_blockmap() for common blockmap output format This is for hammer blockmap,checkmap,show,show-undo commands. These hammer commands print blockmap information prior to checking whatever filesystem structure they're looking for, with slightly different format but essentially the same thing. print_blockmap() defines a common format so that these commands can print blockmap information in the same format. print_blockmap() is based on hammer blockmap command's output format since it has the best readable format. Summary of changes: sbin/hammer/cmd_blockmap.c | 30 ++++------------------- sbin/hammer/cmd_show.c | 30 ++++------------------- sbin/hammer/hammer_util.h | 2 ++ sbin/hammer/ondisk.c | 60 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 71 insertions(+), 51 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/dce7ae2c730e5e9d4b2438f6dffd053eef34c056 -- DragonFly BSD source repository