btrfs-progs: corrupt-block: Factor out common "-r" handling code
commit32acc8eed29847616f6d99d70b9dac1466e4ec4f
authorNikolay Borisov <nborisov@suse.com>
Mon, 14 May 2018 11:13:31 +0000 (14 14:13 +0300)
committerDavid Sterba <dsterba@suse.com>
Thu, 7 Jun 2018 14:37:39 +0000 (7 16:37 +0200)
tree6f1e78ccdcefaceca17d58e545c842b798755788
parentf7a27396cf01411fe803e414061fbc08f0a6227f
btrfs-progs: corrupt-block: Factor out common "-r" handling code

Since more and more of the "corrupt XXX" options are going to support
combination with -r option, let's extract the common code needed for
this. No functional changes.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
btrfs-corrupt-block.c