git: hammer2 - Add directive to destroy bad directory entries

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Sep 16 18:19:15 PDT 2017


commit f6aebb44e85767963b73e878ca532ec4b16a526e
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Sep 16 18:17:16 2017 -0700

    hammer2 - Add directive to destroy bad directory entries
    
    * Add a directive and ioctl that is capable of destroying bad hammer2
      directory entries.  If topological corruption occurs due to a crash
      (which theoretically shouldn't be possible with HAMMER2), this directive
      allows you to destroy directory entries which do not have working inodes
      and cannot otherwise be destroyed with 'rm'.
    
    * Sysops should only use this directive when absolutely necessary.

Summary of changes:
 sbin/hammer2/Makefile            |  2 +-
 sbin/hammer2/hammer2.8           | 25 ++++++++--
 sbin/hammer2/hammer2.h           |  1 +
 sbin/hammer2/main.c              |  8 ++++
 sys/vfs/hammer2/hammer2.h        |  4 ++
 sys/vfs/hammer2/hammer2_ioctl.c  | 98 +++++++++++++++++++++++++++++++++++++++-
 sys/vfs/hammer2/hammer2_ioctl.h  | 18 ++++++++
 sys/vfs/hammer2/hammer2_vfsops.c |  2 +-
 sys/vfs/hammer2/hammer2_xops.c   |  7 +--
 9 files changed, 154 insertions(+), 11 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list