git: hammer2 - Add more features to the "recover" directive

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Sep 29 12:53:44 PDT 2023


commit ddc249f6456598b9b947d34957dda7af94ba24f3
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Sep 29 12:43:30 2023 -0700

    hammer2 - Add more features to the "recover" directive
    
    * Disallow brefs with no check mode set.  This removes a lot of
      misdetected junk.  Add "recover-relaxed" to allow such brefs.
    
    * Add "recover-file" to indicate that the path is explicitly
      representing a file, preventing junk recursions if the scan
      finds something that looks like a directory of that name.
    
    * Add a progress indication (disabled with -q).
    
    * Add additional sanity checks to reduce mis-detection of junk.

Summary of changes:
 sbin/hammer2/cmd_recover.c | 94 +++++++++++++++++++++++++++++++++++++++-------
 sbin/hammer2/hammer2.8     | 15 ++++++++
 sbin/hammer2/hammer2.h     |  3 +-
 sbin/hammer2/main.c        | 13 ++++++-
 4 files changed, 108 insertions(+), 17 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list