git: sbin/hammer: Don't expose VolList

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Wed Aug 31 09:50:54 PDT 2016


commit 173bd31c83fbfedc86f124cfc05cd7a9227d3839
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Tue Aug 30 21:54:29 2016 +0900

    sbin/hammer: Don't expose VolList
    
    This is just a cleanup to hide a volume list data itself from
    each hammer command (actually only hammer recover command).
    Use whatever apis provided instead of raw access to data.
    
    Volume initialization part of hammer recover needs to be fixed
    anyway. It needs to allow a broken header (at least to certain
    extent) given that the purpose of this command is to recover
    from a broken filesystem. It currently forces all the sanity
    checks on volume header.

Summary of changes:
 sbin/hammer/cmd_recover.c |  6 +++++-
 sbin/hammer/hammer_util.h |  3 ---
 sbin/hammer/ondisk.c      | 15 ++++++++++-----
 3 files changed, 15 insertions(+), 9 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/173bd31c83fbfedc86f124cfc05cd7a9227d3839


-- 
DragonFly BSD source repository



More information about the Commits mailing list