git: sbin/hammer: Make hammer recover use hammer_parsedevs_noverify()

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat Oct 15 09:27:31 PDT 2016


commit c2b74c42a6ed8d6039d553fa5fb317d1288a3782
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Fri Oct 14 21:33:59 2016 +0900

    sbin/hammer: Make hammer recover use hammer_parsedevs_noverify()
    
    hammer recover command should be able to run the recovery code
    even if volume header is broken (not just broken blockmap part)
    to certain extent, since the purpose of this is to recover contents
    of a broken filesystem.
    
    By using 0 for verify argument of load_volume(), hammer recover
    skips sanity checks for ondisk volume header.
    
    Also see 173bd31c.

Summary of changes:
 sbin/hammer/hammer.c | 21 ++++++++++++++++++---
 sbin/hammer/ondisk.c |  7 +------
 2 files changed, 19 insertions(+), 9 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c2b74c42a6ed8d6039d553fa5fb317d1288a3782


-- 
DragonFly BSD source repository



More information about the Commits mailing list