Re: [RFC] btrfs-progs: btrfs-corrupt-block refactor

2017-01-25 Thread Lakshmipathi.G
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

[RFC] btrfs-progs: btrfs-corrupt-block refactor

2017-01-19 Thread Qu Wenruo
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