git: sbin/hammer: Allow any volume to be stripped by strip command

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


commit 8b6688a481ea13fef18f5cbeb6b86bc6632c3cd2
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Thu Apr 13 21:56:00 2017 +0300

    sbin/hammer: Allow any volume to be stripped by strip command
    
    hammer strip should be able to strip each volume independently whether
    all volumes that consist filesystem are available or not. It makes no
    sense to require all volumes when the purpose of command is to destroy
    them, even though that's necessary to go through the whole process.
    
    If root volume is missing or root volume has incomplete offset format,
    layer1/2 won't be erased, but just header part.

Summary of changes:
 sbin/hammer/cmd_strip.c | 66 ++++++++++++++++++++++++++++++++++++++++++++-----
 sbin/hammer/hammer.c    |  2 +-
 2 files changed, 61 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8b6688a481ea13fef18f5cbeb6b86bc6632c3cd2


-- 
DragonFly BSD source repository



More information about the Commits mailing list