Hi Qu,
I think it will be a good idea to have corruption log. It should take
--log or --verbose
btrfs-corrupt-block --log=/path/to/logfile
it should record original state of target object before the
corruption. For ex: when we try to corrupt nlink field of
/data/file.txt Log should have entries
This is the RFC proposal for refactor btrfs-corrupt-block.
Just as Lakshmipathi and xfstests guys commented in btrfs ML, we need
btrfs-corrupt-block to either craft a test case, or for later RAID56
corruption test case.
However the current situation of btrfs-corrupt-block has several