hammer2 - Add destroy-inum directive
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 1 Aug 2018 17:14:46 +0000 (10:14 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 1 Aug 2018 17:14:46 +0000 (10:14 -0700)
commitead47bfad97013d7ff671c800482f73bc8173cad
tree3f249f6dd5185c7b2411151e0c14eefde9fefa08
parentc90492810f56e1f820f5df990e3718c512424be9
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.
sbin/hammer2/cmd_destroy.c
sbin/hammer2/hammer2.h
sbin/hammer2/main.c
sys/vfs/hammer2/hammer2.h
sys/vfs/hammer2/hammer2_ioctl.c
sys/vfs/hammer2/hammer2_xops.c