git: sbin/hammer: Make volume count test optional for blkdevs based commands

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Apr 13 14:35:02 PDT 2017


commit 6f3c8414f4d4746c8d9d9e6f46f7af3eac34f36c
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Thu Apr 13 21:48:16 2017 +0300

    sbin/hammer: Make volume count test optional for blkdevs based commands
    
    This is basically for feature enhancement of hammer strip command
    in the next commit. No functional change by this commit.
    
    Some blkdevs based commands need to be able to handle broken volume
    headers by omitting volume verification (to certain extent). It has
    been that way for the volume header contents, but not for volume
    count as well as checking existence of root volume.

Summary of changes:
 sbin/hammer/hammer.c      | 50 +++++++++++++++++++++--------------------------
 sbin/hammer/hammer_util.h |  2 +-
 sbin/hammer/ondisk.c      |  4 ++--
 3 files changed, 25 insertions(+), 31 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6f3c8414f4d4746c8d9d9e6f46f7af3eac34f36c


-- 
DragonFly BSD source repository



More information about the Commits mailing list