git: sbin/hammer: Add print_blockmap() for common blockmap output format

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Mon Aug 22 05:41:54 PDT 2016


commit dce7ae2c730e5e9d4b2438f6dffd053eef34c056
Author: Tomohiro Kusumi <kusumi.tomohiro at 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



More information about the Commits mailing list