git: hammer2 - Add destroy-inum directive
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed Aug 1 10:17:48 PDT 2018
commit ead47bfad97013d7ff671c800482f73bc8173cad
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Wed Aug 1 10:14:46 2018 -0700
hammer2 - Add destroy-inum directive
* Add support for destroying screwed up inodes (e.g. inodes with CRC
failures and such).
hammer2 -s filesystem destroy-inum inode_number
This will attempt to destroy an inode number without reading it,
allowing the removal of dead inodes from a corrupted filesystem.
* This is similar to 'hammer2 destroy path', which destroys dead
directory entries, but acts on the inode instead of on the
directory entry.
Summary of changes:
sbin/hammer2/cmd_destroy.c | 29 +++++++++++++++++++++++-
sbin/hammer2/hammer2.h | 1 +
sbin/hammer2/main.c | 10 ++++++++-
sys/vfs/hammer2/hammer2.h | 1 +
sys/vfs/hammer2/hammer2_ioctl.c | 18 +++++----------
sys/vfs/hammer2/hammer2_xops.c | 50 +++++++++++++++++++++++++++++++++++++++--
6 files changed, 92 insertions(+), 17 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ead47bfad97013d7ff671c800482f73bc8173cad
--
DragonFly BSD source repository
More information about the Commits
mailing list